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 - NB 7.3.1 tests does not know CONSTANT_InvokeDynamic
Summary: NB 7.3.1 tests does not know CONSTANT_InvokeDynamic
Status: RESOLVED DUPLICATE of bug 225528
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.3.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords: JDK_SPECIFIC, TEST
Depends on:
Blocks:
 
Reported: 2013-08-20 12:20 UTC by AlexanderIoffe
Modified: 2013-08-20 12:35 UTC (History)
1 user (show)

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 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 ***