New posts
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
== Class-file version of ExtendWith.class (major 52 = Java 8, 61 = Java 17)
|
||||
junit-jupiter-api 5.14.4: major version: 52
|
||||
junit-jupiter-api 6.1.3: major version: 61
|
||||
|
||||
== ExtensionContext.Store: getOrComputeIfAbsent and computeIfAbsent
|
||||
-- junit-jupiter-api 5.14.4
|
||||
public default <V> V getOrComputeIfAbsent(java.lang.Class<V>);
|
||||
public abstract <K, V> java.lang.Object getOrComputeIfAbsent(K, java.util.function.Function<K, V>);
|
||||
public abstract <K, V> V getOrComputeIfAbsent(K, java.util.function.Function<K, V>, java.lang.Class<V>);
|
||||
-- junit-jupiter-api 6.1.3
|
||||
public default <V> V getOrComputeIfAbsent(java.lang.Class<V>);
|
||||
public default <V> V computeIfAbsent(java.lang.Class<V>);
|
||||
public abstract <K, V> java.lang.Object getOrComputeIfAbsent(K, java.util.function.Function<? super K, ? extends V>);
|
||||
public abstract <K, V> java.lang.Object computeIfAbsent(K, java.util.function.Function<? super K, ? extends V>);
|
||||
public abstract <K, V> V getOrComputeIfAbsent(K, java.util.function.Function<? super K, ? extends V>, java.lang.Class<V>);
|
||||
public abstract <K, V> V computeIfAbsent(K, java.util.function.Function<? super K, ? extends V>, java.lang.Class<V>);
|
||||
|
||||
== InvocationInterceptor.interceptDynamicTest
|
||||
-- junit-jupiter-api 5.14.4
|
||||
public default void interceptDynamicTest(InvocationInterceptor$Invocation<java.lang.Void>, ExtensionContext);
|
||||
public default void interceptDynamicTest(InvocationInterceptor$Invocation<java.lang.Void>, DynamicTestInvocationContext, ExtensionContext);
|
||||
-- junit-jupiter-api 6.1.3
|
||||
public default void interceptDynamicTest(InvocationInterceptor$Invocation<java.lang.Void>, DynamicTestInvocationContext, ExtensionContext);
|
||||
|
||||
== A Store call compiled with -Xlint:deprecation (StoreProbe.java)
|
||||
-- against JUnit 5.14.4
|
||||
javac exit status: 0
|
||||
-- against JUnit 6.1.3
|
||||
StoreProbe.java:5: warning: [deprecation] <K,V>getOrComputeIfAbsent(K,Function<? super K,? extends V>) in Store has been deprecated
|
||||
return store.getOrComputeIfAbsent("k", k -> "v");
|
||||
^
|
||||
where K,V are type-variables:
|
||||
K extends Object declared in method <K,V>getOrComputeIfAbsent(K,Function<? super K,? extends V>)
|
||||
V extends Object declared in method <K,V>getOrComputeIfAbsent(K,Function<? super K,? extends V>)
|
||||
1 warning
|
||||
javac exit status: 0
|
||||
-- the 6.x replacement computeIfAbsent (ComputeProbe.java)
|
||||
against JUnit 5.14.4: javac exit status 1
|
||||
target/probe/src/ComputeProbe.java:5: error: cannot find symbol
|
||||
return store.computeIfAbsent("k", k -> "v");
|
||||
^
|
||||
against JUnit 6.1.3: javac exit status 0
|
||||
|
||||
== The module's extensions (src/test/java/.../ext) compiled unchanged with --release 17
|
||||
JUnit 5.14.4: 14 class files, javac exit status 0
|
||||
JUnit 6.1.3: 14 class files, javac exit status 0
|
||||
Reference in New Issue
Block a user