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.

Bug 251013 - IllegalArgumentException: Invalid end offset: 275, start is: 305
Summary: IllegalArgumentException: Invalid end offset: 275, start is: 305
Status: RESOLVED INCOMPLETE
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-08 15:26 UTC by akobberup
Modified: 2015-03-17 09:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 215953


Attachments
stacktrace (3.91 KB, text/plain)
2015-03-08 15:26 UTC, akobberup
Details

Note You need to log in before you can comment on or make changes to this bug.
Description akobberup 2015-03-08 15:26:15 UTC
Build: NetBeans IDE Dev (Build 201503050001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.31-b07, Java(TM) SE Runtime Environment, 1.8.0_31-b13
OS: Windows 8

User Comments:
akobberup: Tryint to implement an interface in an inner class




Stacktrace: 
java.lang.IllegalArgumentException: Invalid end offset: 275, start is: 305
   at org.netbeans.spi.editor.fold.FoldInfo.<init>(FoldInfo.java:126)
   at org.netbeans.spi.editor.fold.FoldInfo.range(FoldInfo.java:117)
   at org.netbeans.modules.java.editor.fold.JavaElementFoldManager$JavaElementFoldTask$1.createInnerClassFold(JavaElementFoldManager.java:242)
   at org.netbeans.modules.java.editor.fold.JavaElementFoldManager$JavaElementFoldTask$1.createInnerClassFold(JavaElementFoldManager.java:234)
   at org.netbeans.modules.java.editor.base.fold.JavaElementFoldVisitor.visitClass(JavaElementFoldVisitor.java:209)
   at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:725)
Comment 1 akobberup 2015-03-08 15:26:17 UTC
Created attachment 152483 [details]
stacktrace
Comment 2 Svata Dedic 2015-03-17 09:53:24 UTC
Could you please attach the source file, or at least the part with the innerclass declaration ? I could not reproduce the defect so far.
Comment 3 akobberup 2015-03-17 09:57:24 UTC
I have not had this exception in the last week at least - so i guess that the exact conditions that triggered it are no longer present in my source, or i have not had been editing the file that caused the error (i have no recollection of what file that were).

Please just close the issue, and i will reopen if i get the exception again.