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: | IndexOutOfBoundsException: start=-1073741674 < 0 | ||
---|---|---|---|
Product: | php | Reporter: | maghiel <maghiel> |
Component: | Formatting & Indentation | Assignee: | Ondrej Brejla <obrejla> |
Status: | VERIFIED WORKSFORME | ||
Severity: | normal | CC: | fsando, mil-ast, schkovich, sdedic, vriha |
Priority: | P3 | ||
Version: | 7.0 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 181317 |
Attachments: |
stacktrace
stacktrace stacktrace stacktrace stacktrace stacktrace |
Description
maghiel
2011-09-22 20:20:31 UTC
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 |