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: | [69cat] Multiline String; where is the plus | ||
---|---|---|---|
Product: | java | Reporter: | stefan79 <stefan79> |
Component: | Editor | Assignee: | Dusan Balek <dbalek> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | harryshepard, mmirilovic |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
stefan79
2009-11-17 10:13:24 UTC
reproducible in NB 6.8 This is result of fixing bug 151154, making code formatter to follow recommended formatting. The split string action should probably follow this formatting as well and/or this may be configurable Bug is still alive at Current 6.9-build. I don´t need a option (-> #177873), but the program should always give me the same result (wherever the plus then stands). Please fix this. Fixed in jet-main (including an option). http://hg.netbeans.org/jet-main/rev/9ed7c3a690ae Integrated into 'main-golden', will be available in build *201005100200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/ User: Log: Works fine. Thanks! *** Bug 183185 has been marked as a duplicate of this bug. *** This bug is reproducible always in NetBeans IDE 7.0 Beta (Build 201011152355). When you write a String and press return between the quotation marks. The plus is at the end of the line String test1 = "line1" + "line2" + "line3"; After formating the Sourcefile, the plus at the begin of the line: String test1 = "line1" + "line2" + "line3"; This is equally applicable to boolean expressions: if (getA() || getB()) becomes if (getA() || getB()) Works fine in the current dev build. Please note the "Wrap After Binary Operators" formatting option. |