Skip to content

Deencapsulation.setField() is broken for JDK8 after I upgrade to v1.24 #281

@pmodulo

Description

@pmodulo

Please provide the following information:

  • Version of JMockit that was used: v1.24
  • Description of the problem or enhancement request:Deencapsulation.setField() is broken for JDK8 after I upgrade to v1.24. My tests started to fail with the following error message:

java.lang.RuntimeException: java.lang.IllegalAccessException: Can not set static final java.util.HashMap field xxx.xxx.xxx to java.util.HashMap
Caused by:
java.lang.IllegalAccessException: Can not set static final java.util.HashMap field xxx.xxx.xxx to java.util.HashMap
at java.lang.reflect.Field.set(Field.java:764)
... 3 more

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions