Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoSuchFieldError: String.COMPACT_STRINGS #118

Closed
gayanW opened this issue Jul 22, 2018 · 0 comments
Closed

NoSuchFieldError: String.COMPACT_STRINGS #118

gayanW opened this issue Jul 22, 2018 · 0 comments

Comments

@gayanW
Copy link
Collaborator

gayanW commented Jul 22, 2018

Runtime error "java.lang.NoSuchFieldError: java.lang.String.COMPACT_STRINGS" when running JUnit tests (StringTest).

[junit] java.lang.NoSuchFieldError: java.lang.String.COMPACT_STRINGS
[junit]     at java.lang.AbstractStringBuilder.getCoder(AbstractStringBuilder.java:1594)
[junit]     at java.lang.String.contentEquals(String.java:273)
[junit]     at gov.nasa.jpf.test.java.lang.StringTest.testContentEquals(StringTest.java:301)
[junit]     at java.lang.reflect.Method.invoke(gov.nasa.jpf.vm.JPF_java_lang_reflect_Method)
[junit]     at gov.nasa.jpf.util.test.TestJPF.runTestMethod(TestJPF.java:648)
gayanW added a commit to gayanW/jpf-core that referenced this issue Jul 23, 2018
The value for java.lang.String#COMPACT_STRINGS is injected by JVM.
If it is set to false, bytes in value are always encoded in UTF16.

This also fixes javapathfinder#118:
  [junit] java.lang.NoSuchFieldError: java.lang.String.COMPACT_STRINGS
gayanW added a commit to gayanW/jpf-core that referenced this issue Jul 27, 2018
The value for java.lang.String#COMPACT_STRINGS is injected by JVM.
If it is set to false, bytes in value are always encoded in UTF16.

This also fixes javapathfinder#118:
  [junit] java.lang.NoSuchFieldError: java.lang.String.COMPACT_STRINGS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants