Comments (10)
Thanks, this is indeed a bug. Our regression tests do not check whether unexpected warnings occur so we have not caught that.
The warning means that there is a declared native method that refers to a non-existent native method. In this case, I think the problem lies in src/peers/gov/nasa/jpf/vm/JPF_jdk_internal_misc_Unsafe.java
:
public int getUnsafe____Lsun_misc_Unsafe_2 (MJIEnv env, int clsRef) {
Simply changing the "mangled" return type to the mangled equivalent of jdk.internal.misc.Unsafe
should fix this.
If possible, try to create a failing unit test first, which with the fix should then pass.
from jpf-core.
Is this issue still available ? can i work on this? @cyrille-artho
Not sure, adysinghh had almost completed the fix but then has not done the final small step. I've added a comment above to notify him.
from jpf-core.
can i work on this
from jpf-core.
Yes, unless there is a recent comment of someone working on an issue, it is usually available.
Creating an automated test to verify the absence of warnings may be difficult, but fixing the bug is easy. I will accept a patch if it fixes the bug without an automated check against the warning, and the check could also be implemented separately later. (If you have a working idea that includes a check against the warning, that's of course even better.)
from jpf-core.
@cyrille-artho hii, I had made some changes please review it.
from jpf-core.
Is this issue still available ? can i work on this? @cyrille-artho
from jpf-core.
@adysinghh : You had nearly completed your patch back in early January except for some redundancy/formatting issues. I had left some comments about that on Jan 15. Are you planning on completing your PR?
from jpf-core.
@cyrille-artho Apologies for the delay, I've been caught up with exams. I'll address the redundancy and formatting issues pointed out in your comments before this weekend.
from jpf-core.
The warning message is related to presence of orphan NativePeer method . The warning suggests that there may be an issue with the compatibility of the Java version you are using (openjdk 11.0.20.1) with the JPF library.
It is recommended to use a stable and well-tested version of Java 11 that is known to be compatible with the JPF library.
from jpf-core.
The warning is simply because of a minor change we forgot to make in the Java 11 version. It is easy to fix, but finding out how to fix it is a good introduction to JPF's architecture for a first-time committer, so we leave this up for someone to fix.
from jpf-core.
Related Issues (20)
- Migration to Java 11 HOT 2
- Coverage configuration HOT 2
- Unit test case performance HOT 10
- Gradle build under Gradle 8 has inconsistent configuration HOT 5
- Classpath issue while using JPF(Java Path Finder) HOT 2
- NoClassDefFoundError: sun/misc/SharedSecrets HOT 1
- Build Error occurring when I have the correct version of Java installed? HOT 7
- URLClassLoader unit tests fail under Windows HOT 7
- JPF fails with java.lang.IllegalArgumentException: Null charset name HOT 3
- The wrapper.jar checksum is not consistent with the gradle version. HOT 3
- Cannot build jpf-core due to compileAnnotationsJava FAILED HOT 6
- Class not found: com.google.common.util.concurrent.ThreadFactoryBuilder HOT 1
- Java Path Finder Latest Version not available HOT 1
- Addressing Deprecated API Usage: public static SecurityManager getSecurityManager() {....} has been deprecated since Java 17 HOT 47
- Test case failure at Java-8 branch HOT 6
- `String.equals(Object)` makes JPF on Java 11 crash HOT 9
- Java 17 support: CI configuration, identification of key issues HOT 29
- java.lang.NoSuchMethodError: java.lang.String.getBytes([BIIBI) HOT 13
- cannot find native jdk.internal.misc.CDS.isDumpingClassList0 HOT 43
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jpf-core.