Changeset 18434 in josm for trunk/test/unit


Ignore:
Timestamp:
2022-04-21T21:54:17+02:00 (3 years ago)
Author:
taylor.smock
Message:

Dependency updates

JCSCacheManager was modified to move away from methods deprecated in JCS 3.1.

TestUtils was modified so that we are only testing Java versions that byte
buddy might not understand, and to use the non-shaded version of byte buddy
(equalsverifier is no longer a fat jar).

ivy.xml:

tools/ivy.xml:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/TestUtils.java

    r18208 r18434  
    6464import com.github.tomakehurst.wiremock.WireMockServer;
    6565import com.github.tomakehurst.wiremock.core.WireMockConfiguration;
    66 
    6766import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
    6867import io.github.classgraph.ClassGraph;
     
    492491    @SuppressWarnings("null")
    493492    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) {
    495496            // Byte Buddy often supports new class file versions for current EA releases if its experimental flag is set to true
    496497            System.setProperty("net.bytebuddy.experimental", "true");
     498        } else {
     499            return;
    497500        }
    498501        try {
    499502            // Workaround to https://github.com/jqno/equalsverifier/issues/177
    500503            // 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();
    502506        } catch (IllegalArgumentException e) {
    503507            assumeFalse(e != null);
Note: See TracChangeset for help on using the changeset viewer.