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 234636

Summary: NB 7.3.1 tests does not know CONSTANT_InvokeDynamic
Product: java Reporter: AlexanderIoffe
Component: SourceAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED DUPLICATE    
Severity: normal CC: jskrivanek
Priority: P3 Keywords: JDK_SPECIFIC, TEST
Version: 7.3.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description AlexanderIoffe 2013-08-20 12:20:31 UTC
Test org.netbeans.modules.java.source.usages.CompromiseSATest::testClassSignatureFromElement  fails on JDKm 8 starting b100 since parsed class now have CONSTANT_InvokeDynamic in Constans Pool

Error	invalid constant pool type: 18

org.netbeans.modules.classfile.InvalidClassFormatException: invalid constant pool type: 18
at org.netbeans.modules.classfile.ClassFile.load(ClassFile.java:195)
at org.netbeans.modules.classfile.ClassFile.<init>(ClassFile.java:147)
at org.netbeans.modules.java.source.usages.CompromiseSATest.performClassSignatureFromElementTest(CompromiseSATest.java:255)
at org.netbeans.modules.java.source.usages.CompromiseSATest.testClassSignatureFromElement(CompromiseSATest.java:242)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:491)
at junit.framework.TestCase.runTest(TestCase.java:168)
at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:97)
at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:431)
at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:357)
at java.lang.Thread.run(Thread.java:724)
Caused by: org.netbeans.modules.classfile.InvalidClassFormatException: invalid constant pool type: 18
at org.netbeans.modules.classfile.ConstantPool.load(ConstantPool.java:198)
at org.netbeans.modules.classfile.ConstantPool.<init>(ConstantPool.java:96)
at org.netbeans.modules.classfile.ClassFile.loadClassHeader(ClassFile.java:212)
at org.netbeans.modules.classfile.ClassFile.load(ClassFile.java:189)
... 12 more
Caused by: java.lang.IllegalArgumentException: invalid constant pool type: 18
at org.netbeans.modules.classfile.ConstantPool.getConstantPoolEntry(ConstantPool.java:270)
at org.netbeans.modules.classfile.ConstantPool.load(ConstantPool.java:182)
... 15 more
Comment 1 Jan Lahoda 2013-08-20 12:35:12 UTC

*** This bug has been marked as a duplicate of bug 225528 ***