javapathfinder / jpf-core

JPF is an extensible software analysis framework for Java bytecode. jpf-core is the basis for all JPF projects; you always need to install it. It contains the basic VM and model checking infrastructure, and can be used to check for concurrency defects like deadlocks, and unhandled exceptions like NullPointerExceptions and AssertionErrors.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Possible Solution for testSimpleReadbackOk

ThisTestUser opened this issue · comments

Currently, the test "testSimpleReadbackOk" fails in the Java 8 version of JPF. This is caused by an empty "savedProps" in sun.misc.VM. This field is set by VM.saveAndRemoveProperties(), which is only called in System.initializeSystemClass().

However, initializeSystemClass() is a private method that is called by a native library, and in my tests JPF never calls this method. A possible fix for this would be to run this method at of System.class.

Please note that this does not fix the Java 11 version of this test, but instead the Java 8 version, which some users have reported to be failing (#314).