You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "iloveeclipse (via GitHub)" <gi...@apache.org> on 2025/10/09 14:11:06 UTC

[PR] Fix JdkGenericDumpTest.testJdkModules failures on Java 25 (#474) [commons-bcel]

iloveeclipse opened a new pull request, #474:
URL: https://github.com/apache/commons-bcel/pull/474

   Updated test expectations according to changes of the JDK content (jmod files are optional now and not shipped by default).
   
   See:
   - https://issues.apache.org/jira/browse/BCEL-377
   - https://openjdk.org/jeps/493
   - https://bugs.openjdk.org/browse/JDK-8333799
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix JdkGenericDumpTest.testJdkModules failures on Java 25 (#474) [commons-bcel]

Posted by "dejan2609 (via GitHub)" <gi...@apache.org>.
dejan2609 commented on PR #474:
URL: https://github.com/apache/commons-bcel/pull/474#issuecomment-3386393851

   > This would add more code like
   > if JDK < 8 and > 25 and if there are no jmods, we are OK,
   > but if JDK > 8 and < 25 and some jmods are missing it is not OK etc
   
   Suggestion: https://docs.junit.org/5.13.4/api/org.junit.jupiter.api/org/junit/jupiter/api/condition/EnabledIf.html (or `DisabledIf`).
   
   Not sure about jmods presence check, will try to digg something.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix JdkGenericDumpTest.testJdkModules failures on Java 25 (#474) [commons-bcel]

Posted by "iloveeclipse (via GitHub)" <gi...@apache.org>.
iloveeclipse commented on PR #474:
URL: https://github.com/apache/commons-bcel/pull/474#issuecomment-3386566488

   > Do theses now optional files reside in a different place? 
   No, they are simply not shipped
   
   > Are they available as a separate download?
   For adoptium JDK builds yes, for others I don't know.
   
   For aduptium, see https://github.com/adoptium/adoptium-support/issues/1271#issuecomment-3386176502


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix JdkGenericDumpTest.testJdkModules failures on Java 25 (#474) [commons-bcel]

Posted by "dejan2609 (via GitHub)" <gi...@apache.org>.
dejan2609 commented on PR #474:
URL: https://github.com/apache/commons-bcel/pull/474#issuecomment-3386203685

   @iloveeclipse One non-binding LGTM from me :slightly_smiling_face: 
   And please check my comment above :arrow_up: 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix JdkGenericDumpTest.testJdkModules failures on Java 25 (#474) [commons-bcel]

Posted by "iloveeclipse (via GitHub)" <gi...@apache.org>.
iloveeclipse commented on PR #474:
URL: https://github.com/apache/commons-bcel/pull/474#issuecomment-3386273525

   > Thank you for your PR but That's not quite right. We only want to disable the tests if the underlying files are missing, not disable all the time. Ty!
   
   The parametrized test expects parameters. If there are no jmod files, there are no parameters, so the test will fail. So do you want to provide "dummy" Path objects if there are no jmods?
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix JdkGenericDumpTest.testJdkModules failures on Java 25 (#474) [commons-bcel]

Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory commented on PR #474:
URL: https://github.com/apache/commons-bcel/pull/474#issuecomment-3386430076

   How about adding at least one custom file to the test resources such that at least one file is always available. Do theses now optional files reside in a different place? Are they available as a separate download? (AFK or I'd check)
   Ty!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix JdkGenericDumpTest.testJdkModules failures on Java 25 (#474) [commons-bcel]

Posted by "iloveeclipse (via GitHub)" <gi...@apache.org>.
iloveeclipse commented on PR #474:
URL: https://github.com/apache/commons-bcel/pull/474#issuecomment-3386590389

   > How about adding at least one custom file
   
   Why should we? This would require understanding of how to build that jmod, what to put inside, into which structure and maintain that file compatibility with future Java releases. I had and still have lot of fun trying to keep up with ct.sym file in JDT, and from my experience it is a nightmare because there is no specs, nothing is documented, can change at any time with new JDK because considered internal etc.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix JdkGenericDumpTest.testJdkModules failures on Java 25 (#474) [commons-bcel]

Posted by "dejan2609 (via GitHub)" <gi...@apache.org>.
dejan2609 commented on PR #474:
URL: https://github.com/apache/commons-bcel/pull/474#issuecomment-3386759396

   +1 for not expanding this too much.
   
   JMod is optional for Java 25 and hence testing (around) it should not be imperative, so to say.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix JdkGenericDumpTest.testJdkModules failures on Java 25 (#474) [commons-bcel]

Posted by "iloveeclipse (via GitHub)" <gi...@apache.org>.
iloveeclipse commented on PR #474:
URL: https://github.com/apache/commons-bcel/pull/474#issuecomment-3386610911

   Just in case, here jmod docs: https://docs.oracle.com/en/java/javase/25/docs/specs/man/jmod.html
   I would however honestly do not recommend not to go this direction.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix JdkGenericDumpTest.testJdkModules failures on Java 25 (#474) [commons-bcel]

Posted by "iloveeclipse (via GitHub)" <gi...@apache.org>.
iloveeclipse commented on PR #474:
URL: https://github.com/apache/commons-bcel/pull/474#issuecomment-3388391332

   If I see it right, this PR can be closed, alternative fix was merged: https://github.com/apache/commons-bcel/commit/402515be515189f0973f4fd4e4977c35bebea90f


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix JdkGenericDumpTest.testJdkModules failures on Java 25 (#474) [commons-bcel]

Posted by "dejan2609 (via GitHub)" <gi...@apache.org>.
dejan2609 commented on code in PR #474:
URL: https://github.com/apache/commons-bcel/pull/474#discussion_r2417055694


##########
src/test/java/org/apache/bcel/generic/JdkGenericDumpTest.java:
##########
@@ -179,7 +179,8 @@ void testJdkJars(final Path jarPath) throws Exception {
 
     @ParameterizedTest
     @MethodSource("org.apache.bcel.generic.JavaHome#streamModulePath")
-    @DisabledOnJre(value = JRE.JAVA_8)
+    @DisabledOnJre(value = { JRE.JAVA_8, JRE.JAVA_25, JRE.JAVA_26 },

Review Comment:
   You may want to consider using: 
   `@EnabledForJreRange(min = JRE.JAVA_9, max = JRE.JAVA_24)` 
   
   (I tested it here #473)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix JdkGenericDumpTest.testJdkModules failures on Java 25 (#474) [commons-bcel]

Posted by "iloveeclipse (via GitHub)" <gi...@apache.org>.
iloveeclipse commented on code in PR #474:
URL: https://github.com/apache/commons-bcel/pull/474#discussion_r2417123195


##########
src/test/java/org/apache/bcel/generic/JdkGenericDumpTest.java:
##########
@@ -179,7 +179,8 @@ void testJdkJars(final Path jarPath) throws Exception {
 
     @ParameterizedTest
     @MethodSource("org.apache.bcel.generic.JavaHome#streamModulePath")
-    @DisabledOnJre(value = JRE.JAVA_8)
+    @DisabledOnJre(value = { JRE.JAVA_8, JRE.JAVA_25, JRE.JAVA_26 },

Review Comment:
   Cool, thanks, will push.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix JdkGenericDumpTest.testJdkModules failures on Java 25 (#474) [commons-bcel]

Posted by "iloveeclipse (via GitHub)" <gi...@apache.org>.
iloveeclipse closed pull request #474: Fix JdkGenericDumpTest.testJdkModules failures on Java 25 (#474)
URL: https://github.com/apache/commons-bcel/pull/474


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix JdkGenericDumpTest.testJdkModules failures on Java 25 (#474) [commons-bcel]

Posted by "iloveeclipse (via GitHub)" <gi...@apache.org>.
iloveeclipse commented on PR #474:
URL: https://github.com/apache/commons-bcel/pull/474#issuecomment-3386344640

   Stragne, github seem to have troubles. I've just force pushed the fix updated as suggested by @dejan2609 but it isn't shown here, only on my branch 
   https://github.com/apache/commons-bcel/compare/master...iloveeclipse:commons-bcel:issue_377


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix JdkGenericDumpTest.testJdkModules failures on Java 25 (#474) [commons-bcel]

Posted by "iloveeclipse (via GitHub)" <gi...@apache.org>.
iloveeclipse commented on PR #474:
URL: https://github.com/apache/commons-bcel/pull/474#issuecomment-3386301403

   > So do you want to provide "dummy" Path objects if there are no jmods?
   
   This would add more code like 
   if JDK < 8 and > 25 and if there are no jmods, we are OK, 
   but if JDK > 8 and < 25 and some jmods are missing it is not OK etc.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix JdkGenericDumpTest.testJdkModules failures on Java 25 (#474) [commons-bcel]

Posted by "iloveeclipse (via GitHub)" <gi...@apache.org>.
iloveeclipse commented on PR #474:
URL: https://github.com/apache/commons-bcel/pull/474#issuecomment-3386394425

   OK, just made the test a "usual one".


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Fix JdkGenericDumpTest.testJdkModules failures on Java 25 (#474) [commons-bcel]

Posted by "iloveeclipse (via GitHub)" <gi...@apache.org>.
iloveeclipse commented on PR #474:
URL: https://github.com/apache/commons-bcel/pull/474#issuecomment-3386131547

   @garydgregory : could you please allow the workflows to run?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org