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.
[ JDK VERSION : 1.7.7 ] When using the hint "Cast <value> to <othervalue>" it creates a large gap on the line. See screendump 1(before) & 2(after). Nothing that really matters, just annoying and should probable be fixed as it is a regression
Created attachment 124819 [details] Line before using hint to cast
Created attachment 124820 [details] Line after using the hint to cast
Jan, this is not the only hint that has this behaviour, some of the "Surrond with..." also makes a lot of spaces. Unfortunatley there seems to be no pattern to when this happens except in this one where it happens alot...
(In reply to comment #3) > Jan, this is not the only hint that has this behaviour, some of the "Surrond > with..." also makes a lot of spaces. Yes, it appears to be a bug in the way code is generated (thus the move to java.source). > > Unfortunatley there seems to be no pattern to when this happens except in this > one where it happens alot... I think the immediate cause is that indent level is incorrectly determined when a blocks opening bracket is on a line that does not have the "correct" indent, e.g. because of a multi-line method headers or a multi-line if/while/... conditions.
Integrated into 'main-golden', will be available in build *201211240959* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/7e7de00e56f6 User: Jan Lahoda <jlahoda@netbeans.org> Log: #218920: ensuring that the root and the selected node are set atomically.
The immediate cause is fixed by fix for bug #222028, but there is one more possible problem which I would like to investigate.
Seems to work OK in trunk; by default, a space is generated after typecast - change in tools/options as necessary.