Fix class loading order to support any extension - #587
Conversation
|
Hi @cyrille-artho , This is more elegant solution that adding a new config in init in ClassLoaderInfo. I was thinking first about adding jpf was searching for classes in the following order: so here is the thing but in the new code we are looking for all properties named I've tested that on my machine and it works good now in jpf-test ext in Math.java model class i have a function abs that should that should return 999 regardless the parameter when i test that java -jar ../jpf-core/build/RunJPF.jar TestMath.jpfit will result which means that its using the function in my model class. same thing for string model class. Now, I think this will be helpful to fix the same issue we had with jpf-nas months ago. Please Let me know what you think about that |
Lets an extension override jpf-core's model classes through its own *.boot_classpath, since the first match on the classpath wins.
0fb01f0 to
1fa3311
Compare
|
Hi Cyrille, Cleaned this up to just the classpath ordering change. It now loads extension *.boot_classpath entries before the normal classpath and vm.boot_classpath, so extensions like jpf-nas can override the core model classes without touching vm.boot_classpath. Also dropped the Tested with jpf-nas on Java 11, SocketTest passes. |
No description provided.