-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Include Java version on generating classes jar file to resolve UnsupportedClassVersion #155
Conversation
e19c94a
to
7f6dfcd
Compare
Grinder links on master branches: TARGET: SharedClasses.SCM01.SingleCL Grinders run On PR branches for issue: 4912 - TARGET: SharedClasses.SCM01.SingleCL |
|
openj9.test.sharedClasses/src/test.sharedClasses/net/openj9/stf/SharedClasses.java
Outdated
Show resolved
Hide resolved
openj9.test.sharedClasses/src/test.sharedClasses/net/openj9/test/sc/JavaGen.java
Outdated
Show resolved
Hide resolved
openj9.test.sharedClasses/src/test.sharedClasses/net/openj9/test/sc/JavaGen.java
Show resolved
Hide resolved
if (jarDir.exists()) { | ||
// Attempt to delete it | ||
try { | ||
deleteDirectory(jarDir); | ||
} catch (IOException e) { | ||
throw new RuntimeException("Failed to delete existing directory: " + e.getMessage()); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please delete this and deleteDirectory() below
if (fileDir.exists()) { | ||
try { | ||
deleteDirectory(fileDir); | ||
} catch (IOException e) { | ||
throw new RuntimeException("Failed to delete existing directory: " + e.getMessage()); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please delete this block
openj9.test.sharedClasses/src/test.sharedClasses/net/openj9/test/sc/JavaGen.java
Outdated
Show resolved
Hide resolved
@@ -211,7 +216,8 @@ public void setUp(StfCoreExtension test, StfSharedClassesExtension sharedClasses | |||
.addProjectToClasspath("openj9.test.sharedClasses") | |||
.runClass(JavaGen.class) | |||
.addArg(sharedClassesDataDir.getSpec()) | |||
.addArg("10000")); | |||
.addArg("10000") | |||
.addArg(String.valueOf(javaVersion))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to add javaVersion
as an arg?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am passing the javaVersion
as an argument to be used by JavaGen.class
file, or should we set it as environment Variable or as a static field ?
- Include Java version number as in classes_jdk8.jar while generating the classes.jar file. closes: eclipse-openj9/openj9#19582 Signed-off-by: Anna Babu Palathingal <[email protected]>
df52b0c
to
e6065ad
Compare
Closing this PR , will raise new PR to address the issue. |
closes: SharedClasses.SCM01.SingleCL UnsupportedClassVersionError eclipse-openj9/openj9#19582