Closed andre15silva closed 2 years ago
The question is: where is com.sun.jdi
in Java 11? by default in the JVM? Somewhere else?
The change was made in https://openjdk.java.net/jeps/220
Removed: rt.jar and tools.jar
The class and resource files previously stored in lib/rt.jar, lib/tools.jar, lib/dt.jar, and various other internal JAR files are now stored in a more efficient format in implementation-specific files in the lib directory. The format of these files is not specified and is subject to change without notice.
I have to dig more into it, but it's still in jdk11 https://docs.oracle.com/en/java/javase/11/docs/api/jdk.jdi/com/sun/jdi/package-summary.html
Does it mean that it is available by default (no need to add another jar as before)?
Does it mean that it is available by default (no need to add another jar as before)?
I think so. There are probably changes in the behaviour/API that impact Nopol, so I have to experiment to be sure it's that straightforward.
have to experiment to be sure it's that straightforward.
great, looking forward to the results
FTR, @Twonki @martinezmatias the tools.jar
problem is fixed, see https://github.com/SpoonLabs/nopol/pull/214#issuecomment-804299594 thanks @andre15silva
GZoltar is the remaining problem. André, we have an ongoing effort to replace Gzoltar, by a new project called flacoco, see https://github.com/eclipse/repairnator/issues/1029 We may soon give Flacoco a high priority.
FYI @gynther-k is able to use GZoltar with Java 11, with the latest version as of commit https://github.com/gynther-k/TBar/commit/d1b15552b5622d36cbf32cf1f0801ced207d73da
FYI @gynther-k is able to use GZoltar with Java 11, with the latest version as of commit gynther-k/TBar@d1b1555
I will take a look and update the PR
@monperrus @andre15silva The modified Java11 .jar files is not used by default in my project but are located here: https://github.com/gynther-k/TBar/tree/test-1/lib/java11modified
I have made a PR to gzoltar with a more detailed description https://github.com/GZoltar/gzoltar/pull/41 . I have no previous experience of gzoltar so please come with suggestions .
Thanks for the PR!
@martinezmatias @andre15silva FYI PR merged in GZoltar https://github.com/GZoltar/gzoltar/pull/41
Nice. Thanks @gynther-k !
Currently Java >8 support is limited due to the
tools.jar
dependency.It would be important to fix these compatibility issues as Nopol's usage in https://github.com/eclipse/repairnator will be limited when it moves to Java 11.