Changeset 18434 in josm for trunk/test/unit
- Timestamp:
- 2022-04-21T21:54:17+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/TestUtils.java
r18208 r18434 64 64 import com.github.tomakehurst.wiremock.WireMockServer; 65 65 import com.github.tomakehurst.wiremock.core.WireMockConfiguration; 66 67 66 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 68 67 import io.github.classgraph.ClassGraph; … … 492 491 @SuppressWarnings("null") 493 492 public static void assumeWorkingEqualsVerifier() { 494 if (Utils.getJavaVersion() >= 16) { 493 // See https://github.com/raphw/byte-buddy/blob/master/byte-buddy-dep/src/main/java/net/bytebuddy/ClassFileVersion.java 494 // for currently supported Java versions. 495 if (Utils.getJavaVersion() >= 19) { 495 496 // Byte Buddy often supports new class file versions for current EA releases if its experimental flag is set to true 496 497 System.setProperty("net.bytebuddy.experimental", "true"); 498 } else { 499 return; 497 500 } 498 501 try { 499 502 // Workaround to https://github.com/jqno/equalsverifier/issues/177 500 503 // Inspired by https://issues.apache.org/jira/browse/SOLR-11606 501 nl.jqno.equalsverifier.internal.lib.bytebuddy.ClassFileVersion.ofThisVm(); 504 // Note: if we change to the equalsverifier fat jar, use nl.jqno.equalsverifier.internal.lib instead of net 505 net.bytebuddy.ClassFileVersion.ofThisVm(); 502 506 } catch (IllegalArgumentException e) { 503 507 assumeFalse(e != null);
Note:
See TracChangeset
for help on using the changeset viewer.