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.
Build: NetBeans IDE Dev (Build 201212120001) VM: Java HotSpot(TM) 64-Bit Server VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_10-b18 OS: Windows 7 User Comments: jiriprox: IOOBE when editing file Stacktrace: java.lang.IndexOutOfBoundsException: end < start (208 < 212) at org.netbeans.spi.editor.hints.ErrorDescriptionFactory.createErrorDescription(ErrorDescriptionFactory.java:265) at org.netbeans.spi.java.hints.ErrorDescriptionFactory.forTree(ErrorDescriptionFactory.java:126) at org.netbeans.modules.java.hints.OrganizeMembers.checkMembers(OrganizeMembers.java:123) at sun.reflect.GeneratedMethodAccessor112.invoke(GeneratedMethodAccessor112.java:0) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601)
Created attachment 129243 [details] stacktrace
Steps to reproduce: 1) have project with Lombok and following class: /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package foo; import lombok.Data; import lombok.Getter; @Data public class AbstractClass { String x = ""; @Getter private final int i; public void neco(int x) { int aa = x; x = 34; String aaa = "a"; } } 2) select whole body of method 'neco' 3) delete it (here occurs issue 223701) 4) undo the changes and press enter -> exception is thrown
http://hg.netbeans.org/jet-main/rev/5ca0ccb53f41
Still does not seem to work after partial reparse.
http://hg.netbeans.org/jet-main/rev/71787dab10f4
Integrated into 'main-golden', will be available in build *201212170919* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/5ca0ccb53f41 User: Jan Lahoda <jlahoda@netbeans.org> Log: #223700: ignoring synthetic members when doing organize members to support lombok-generated methods/fields.