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 14556 - IndexOutOfBoundsException when compiling
Summary: IndexOutOfBoundsException when compiling
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Classfile (show other bugs)
Version: 3.x
Hardware: PC OS/2
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-08-18 06:17 UTC by _ gtzabari
Modified: 2003-06-30 16:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2001-08-18 06:17:40 UTC
dev build 200108170100
IBM JDK 1.3

Sounds like a preexisting bug to me but I've been unable to find a duplicate report so here goes..

When using the source-code editor I get this error randomily whenever I recompile my code:

Sat Aug 18 01:12:02 EDT 2001: java.lang.IndexOutOfBoundsException: Posted StackTrace
Annotation: Exception occurred in Request Processor
Nested annotation: 22967
org.openide.util.RequestProcessor$Holder: Posted StackTrace(task org.netbeans.modules.java.codesync.ClassDependencyImpl$Synchronizer@75671389 
[-3109, 1, -1])
        at org.openide.util.RequestProcessor$Task.createHolder(RequestProcessor.java(Compiled Code))
        at org.openide.util.RequestProcessor.post(RequestProcessor.java(Compiled Code))
        at org.openide.util.RequestProcessor.post(RequestProcessor.java:73)
        at org.openide.util.RequestProcessor.postRequest(RequestProcessor.java:160)
        at org.netbeans.modules.java.codesync.ClassDependencyImpl.supertypesAdded(ClassDependencyImpl.java:252)
        at org.netbeans.modules.java.codesync.ClassDependencyImpl.superclassChanged(ClassDependencyImpl.java:289)
        at org.netbeans.modules.java.codesync.ClassDependencyImpl.propertyChange(ClassDependencyImpl.java:94)
        at org.netbeans.modules.java.model.ElementImpl.firePropertyChangeEvent(ElementImpl.java:329)
        at org.netbeans.modules.java.model.EventQueue.fireEvents(EventQueue.java:163)
        at org.netbeans.modules.java.model.DefaultLangModel.processOutputQueue(DefaultLangModel.java:383)
        at org.netbeans.modules.java.model.DefaultLangModel.releaseWriteLock(DefaultLangModel.java:350)
        at org.netbeans.modules.java.model.DefaultLangModel.runUpdate(DefaultLangModel.java:499)
        at org.netbeans.modules.java.parser.ParsingSupport$Processor.parseLockModel(ParsingSupport.java:602)
        at org.netbeans.modules.java.parser.ParsingSupport$Processor.run(ParsingSupport.java:536)
        at org.openide.util.Task.run(Task.java(Compiled Code))
[catch] at org.openide.util.RequestProcessor$ProcessorThread.run(RequestProcessor.java(Compiled Code))
 
Sat Aug 18 01:12:03 EDT 2001: java.lang.IndexOutOfBoundsException: 22967
java.lang.IndexOutOfBoundsException: 22967
        at org.netbeans.modules.classfile.ConstantPool.get(ConstantPool.java:74)
        at org.netbeans.modules.classfile.ConstantPool.getClass(ConstantPool.java:86)
        at org.netbeans.modules.classfile.ExceptionTableEntry.loadExceptionEntry(ExceptionTableEntry.java:59)
        at org.netbeans.modules.classfile.ExceptionTableEntry.<init>(ExceptionTableEntry.java:49)
        at org.netbeans.modules.classfile.ExceptionTableEntry.loadExceptionTable(ExceptionTableEntry.java:42)
        at org.netbeans.modules.classfile.Code.loadCode(Code.java:55)
        at org.netbeans.modules.classfile.Code.<init>(Code.java:45)
        at org.netbeans.modules.classfile.Method.loadAttribute(Method.java:56)
        at org.netbeans.modules.classfile.Field.loadAttributes(Field.java:71)
        at org.netbeans.modules.classfile.Field.<init>(Field.java:52)
        at org.netbeans.modules.classfile.Method.<init>(Method.java:47)
        at org.netbeans.modules.classfile.Method.loadMethods(Method.java:41)
        at org.netbeans.modules.classfile.ClassFile.load(ClassFile.java:143)
        at org.netbeans.modules.classfile.ClassFile.<init>(ClassFile.java:105)
        at org.netbeans.modules.classfile.ClassFile.<init>(ClassFile.java:59)
        at org.netbeans.modules.clazz.ClassModule.find(ClassModule.java:43)
        at org.openide.src.ClassElement.forClass(ClassElement.java:1082)
        at org.openide.src.ClassElement.forName(ClassElement.java:991)
        at org.netbeans.modules.java.codesync.ClassDependencyImpl.addSupertypeMethods(ClassDependencyImpl.java:762)
        at org.netbeans.modules.java.codesync.ClassDependencyImpl.implementFromSuper(ClassDependencyImpl.java:823)
        at org.netbeans.modules.java.codesync.ClassDependencyImpl.access$000(ClassDependencyImpl.java:45)
        at org.netbeans.modules.java.codesync.ClassDependencyImpl$Synchronizer.collectSupertypeMethods(ClassDependencyImpl.java:188)
        at org.netbeans.modules.java.codesync.ClassDependencyImpl$Synchronizer.run(ClassDependencyImpl.java:178)
        at org.openide.util.Task.run(Task.java(Compiled Code))
[catch] at org.openide.util.RequestProcessor$ProcessorThread.run(RequestProcessor.java(Compiled Code))
Comment 1 Jan Zajicek 2001-08-20 12:25:52 UTC
Moving to classfile module.
Comment 2 Tomas Hurka 2001-08-20 16:06:35 UTC
already fixed in trunk - will be available in dev build 200108210100
Comment 3 Tomas Hurka 2001-08-20 16:07:19 UTC
state changed to fixed
Comment 4 Jan Becicka 2001-11-06 16:22:17 UTC
Verified
Comment 5 Quality Engineering 2003-06-30 16:28:15 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.