Wrong type at constant pool index with Java 1.8.0_60

1,279 views
Skip to first unread message

matthew....@autogeneral.com.au

unread,
Sep 1, 2015, 9:57:38 AM9/1/15
to Cukes
We have been using Cucumber in Java 1.8.0_51 without issue, but as soon as we upgrade to 1.8.0_60, we get the following exceptions:

Caused by: java.lang.IllegalArgumentException: Wrong type at constant pool index
    at sun.reflect.ConstantPoomberRefInfoAt0(Native Method)
    at sun.reflect.ConstantPool.getMemberRefInfoAt(ConstantPool.java:47)
    at cucumber.runtime.java8.ConstantPoolTypeIntrospector.getTypeString(ConstantPoolTypeIntrospector.java:37)
    at cucumber.runtime.java8.ConstantPoolTypeIntrospector.getGenericTypes(ConstantPoolTypeIntrospector.java:27)
    at cucumber.runtime.java.Java8StepDefinition.<init>(Java8StepDefinition.java:45)
    at cucumber.runtime.java.JavaBackend.addStepDefinition(JavaBackend.java:162)
    ... 17 more

Does anyone have any suggestions?

This email is sent by Auto & General Insurance Company Ltd, Auto & General Services Pty Ltd, Auto & General Holdings Pty Ltd or a related body corporate (Auto & General) and is for the intended addressee.
The views expressed in this email and attachments (email) reflect the views of the stated author but may not reflect views of Auto & General. This email is confidential and subject to copyright. 
It may be privileged. If you are not the intended addressee, confidentiality and privilege have not been waived and any use, interference with, or disclosure of this email is unauthorised. 
If you are not the intended addressee please immediately notify the sender and then delete the email. Auto & General does not warrant that this email is error or virus free.

aslak hellesoy

unread,
Sep 1, 2015, 9:58:56 AM9/1/15
to Cucumber Users
What Cucumber-JVM version are you on? Are you on Oracle's Java or another one?

--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

matthew....@autogeneral.com.au

unread,
Sep 1, 2015, 4:22:56 PM9/1/15
to Cukes
Cucumber 1.2.4
Oracle JDK 1.8.0_60 on MacOS

Refactoring all the steps to use the Java6/7 annotated methods has worked around the problem for now.

aslak hellesoy

unread,
Sep 1, 2015, 4:50:25 PM9/1/15
to Cucumber Users
On Tue, Sep 1, 2015 at 9:22 PM, <matthew....@autogeneral.com.au> wrote:
Cucumber 1.2.4
Oracle JDK 1.8.0_60 on MacOS

Refactoring all the steps to use the Java6/7 annotated methods has worked around the problem for now.


Thanks. Please file a bug report so we remember to look into it. A pull request with a fix is also most welcome, and will speed up the fix.

Cheers,
Aslak
Reply all
Reply to author
Forward
0 new messages