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.
Summary: | 'Debug identifier' produces budous code | ||
---|---|---|---|
Product: | editor | Reporter: | Max Sauer <msauer> |
Component: | -- Other -- | Assignee: | issues@editor <issues> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | screenshot |
Description
Max Sauer
2005-11-25 08:19:35 UTC
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. |