This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Invoking 'Debug identifier' inside editor produces bugous code -- extra chars are added to the end of the line. Steps to reproduce: ------------------- 1) Open a j2se project 2) Open a java file 3) Copy some identifier to the clipboard 4) Invoke Ctrl-J D (default shortcut for Debug Identifier) --> Extra '")' is prined to the end of the line, behind the semicolon. See attached screenshot. [200511241900, JDK 1.6.0 beta 64b, solaris 10/sparc]
Created attachment 27267 [details] screenshot
I can reproduce the behaviour, where the serr is added before the identifier like: System.err.println("sss = " + sss ); String sss = "sdfsdf"; I am not sure there will be enough time to fix it to NB 5.0
The issue I mentioned in (200511241900) has been somehow fixed -- I is not present in either 200512061900 or 200512082240. As for System.err.println("sss = " + sss ); String sss = "sdfsdf"; that's something different, and I don't think this needs to be fixed -- everyone knows that variable cannot be used before its declaration. I'll mark this as fixed.
Oops, got it. New steps to reproduce: 1) Declare a variable, ie. 'String str = "dcnsj";' 2) While having carret placed on the declaration line, press Ctrl-J D (debug intentifier) --> The debug println is inserted above the decration, which produces bugous code. [200512082240]
fixed in [maintrunk] /cvs/java/editor/lib/src/org/netbeans/editor/ext/java/JavaSettingsDefaults.java,v <-- JavaSettingsDefaults.java new revision: 1.13; previous revision: 1.12 done Checking in src/org/netbeans/modules/java/editor/resources/DefaultMacros.xml; /cvs/java/editor/src/org/netbeans/modules/java/editor/resources/DefaultMacros.xml,v <-- DefaultMacros.xml new revision: 1.3; previous revision: 1.2
verified in 200512111900.