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 201109202329) VM: Java HotSpot(TM) 64-Bit Server VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147 OS: Windows 7 User Comments: maghiel: Trying to generate getter and setter for 2 properties Stacktrace: java.lang.IndexOutOfBoundsException: start=-1073741674 < 0 at org.netbeans.lib.editor.util.CharSequenceUtilities.checkIndexesValid(CharSequenceUtilities.java:529) at org.netbeans.lib.editor.util.CharSequenceUtilities.checkIndexesValid(CharSequenceUtilities.java:549) at org.netbeans.lib.editor.util.CharSubSequence.checkIndexesValid(CharSubSequence.java:65) at org.netbeans.lib.editor.util.CharSubSequence.<init>(CharSubSequence.java:87) at org.netbeans.modules.editor.lib2.document.CharContent.subSequence(CharContent.java:95) at org.netbeans.lib.lexer.token.DefaultToken.toString(DefaultToken.java:199)
Created attachment 111063 [details] stacktrace
Created attachment 111226 [details] stacktrace What caused it: 1) create new PHP class 2) define 2 variables inside class. Let's say second variable is defined at line X 3) use Enter to get to line X+2, press Alt+Insert and select constructor 4) Dialog is shown, don't check variables, but the whole class => Exception
Created attachment 111228 [details] stacktrace
Created attachment 111439 [details] stacktrace alt+shift+f php file
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=181317
Created attachment 112477 [details] stacktrace
Created attachment 112478 [details] stacktrace $uploaddir = $_SERVER[''] set cursor in '', CTRL + SPACE, select 'DOCUMENT_ROOT', ENTER
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=181317
Caused by these calls (IMHO): at org.netbeans.lib.lexer.token.DefaultToken.toString(DefaultToken.java:224) at org.netbeans.modules.php.editor.indent.FormatVisitor.addFormatToken(FormatVisitor.java:1303) at org.netbeans.modules.php.editor.indent.FormatVisitor.visit(FormatVisitor.java:1023) If I was wrong then please reassign back + better explain where the CSL infrastructure failure is - thanks.
Vlado, can you still reproduce it? I tried you use case and it work properly for me.
Nope, all cases describes in comments are working w/o problem