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.
This bug was originally marked as duplicate of bug 138906, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE Dev (Build 201003220200) VM: Java HotSpot(TM) 64-Bit Server VM, 14.3-b01-101, Java(TM) SE Runtime Environment, 1.6.0_17-b04-248-9M3125 OS: Mac OS X User Comments: juhrik: -write following code: public class NewClass{ public void NewClass(String s){ System.out.println("s"); } } -go to the line with constructor and push Alt-Enter to invoke hint popup -push Enter to activate hint -->>Exception appears Stacktrace: java.lang.ArrayIndexOutOfBoundsException: -1 at org.netbeans.modules.java.source.pretty.CharBuffer.eatAwayChars(CharBuffer.java:263) at org.netbeans.modules.java.source.pretty.VeryPretty.eatChars(VeryPretty.java:1705) at org.netbeans.modules.java.source.save.CasualDiff.copyTo(CasualDiff.java:3404) at org.netbeans.modules.java.source.save.CasualDiff.copyTo(CasualDiff.java:3392) at org.netbeans.modules.java.source.save.CasualDiff.diffMethodDef(CasualDiff.java:655) at org.netbeans.modules.java.source.save.CasualDiff.diffTreeImpl(CasualDiff.java:2944)
*** Bug 182543 has been marked as a duplicate of this bug. ***
*** Bug 182544 has been marked as a duplicate of this bug. ***
Thanks for reproducible test case! http://hg.netbeans.org/jet-main/rev/b8899a5fd223
Integrated into 'main-golden', will be available in build *201003240200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/b8899a5fd223 User: Jan Lahoda <jlahoda@netbeans.org> Log: #182542: fixing an ArrayIndexOutOfBoundsException.
*** Bug 180241 has been marked as a duplicate of this bug. ***
Verified in the following build: Product Version: NetBeans IDE Dev (Build 201003310201) Java: 1.6.0_17; Java HotSpot(TM) 64-Bit Server VM 14.3-b01-101 System: Mac OS X version 10.5.8 running on x86_64; MacRoman; en_US (nb)