You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AntSpec: Improve filter for warning "Archived non-system classes are disabled"
In JDK 21, the prefix has changed once again, no longer being a JVM
specifier like "OpenJDK 64-Bit Server VM" or "Java HotSpot(TM) 64-Bit
Server VM" but rather something like "[0.016s][warning][cds]".
Fixes LTWTests.testJ14LTWWithXML, which started failing on Java 21.
Signed-off-by: Alexander Kriegisch <[email protected]>
Copy file name to clipboardExpand all lines: testing/src/test/java/org/aspectj/testing/AntSpec.java
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -236,9 +236,10 @@ public void messageLogged(BuildEvent event) {
236
236
stderr2 = stderr2.replaceAll("WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations\n","");
237
237
stderr2 = stderr2.replaceAll("WARNING: All illegal access operations will be denied in a future release\n","");
238
238
}
239
-
// J12: Line can start with e.g."OpenJDK 64-Bit Server VM" or "Java HotSpot(TM) 64-Bit Server VM". Therefore,
240
-
// we have to match a substring instead of a whole line
241
-
stderr2 = stderr2.replaceAll("[^\n]+ warning: Archived non-system classes are disabled because the java.system.class.loader property is specified .*org.aspectj.weaver.loadtime.WeavingURLClassLoader[^\n]+\n?","");
239
+
// J12: Line can start with e.g. "OpenJDK 64-Bit Server VM" or "Java HotSpot(TM) 64-Bit Server VM".
240
+
// J21: Line can start with e.g. "[0.016s][warning][cds]".
241
+
// Therefore, we have to match a substring instead of a whole line.
242
+
stderr2 = stderr2.replaceAll("[^\n]+( warning:|\\[warning\\]\\[cds\\]) Archived non-system classes are disabled because the java.system.class.loader property is specified .*org.aspectj.weaver.loadtime.WeavingURLClassLoader[^\n]+\n?","");
0 commit comments