-
Notifications
You must be signed in to change notification settings - Fork 344
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
JPF fails with java.lang.IllegalArgumentException: Null charset name #429
Comments
This exception happens because an internal default setting is set or initialized by the Java library, but not by the libraries that JPF uses. This can be because an existing model class (such as the classes in `src/classes/modules/java.base/java/nio) does not set a certain field. However, without further investigation, it is difficult to tell what the root cause is. Ideally, we can fix this by changing an existing class (in the model classes or a native peer class). If there is no way to fix it there, a new model class (in package |
@cyrille-artho Hi, Can I fix this issue ? |
Yes, please give it a try. |
Seems like there needs to be model classes in the file and charset packages for java.nio. These are as small as I could make them
Developed UnitTest to address the error from javapathfinder#429
(#506) * Found Potential Fix for #429 Seems like there needs to be model classes in the file and charset packages for java.nio. These are as small as I could make them * Create NullCharsetTest.java Developed UnitTest to address the error from #429 * Update NullCharsetTest.java Should be "iae" and not "e" * Fixed Failing Tests for NullCharSet It turns out my implementation of Charset affected the behavior of underlying Gradle JPF tests. Removed this custom Charset implementation and instead kept four files to fix the root cause: - FileSystem.java - FileSystems.java - Pathy.java - spi/FileSystemProvider.java All other files in the initial commit to PR were redundant.
Hi, I'm trying to use JPF to run the following simple program
I got the following exception:
Could you please help me to fix this issue?
The text was updated successfully, but these errors were encountered: