File tree 3 files changed +3
-3
lines changed
documentation/src/docs/asciidoc/release-notes
junit-platform-commons/src/main/java/org/junit/platform/commons/util
platform-tests/src/test/java/org/junit/platform/commons/util
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ JUnit repository on GitHub.
52
52
* The `ReflectionSupport.tryToLoadClass(...)` utility methods now support lookups for the
53
53
`"void"` pseudo-type, which indirectly supports `String` to `Class` conversion for
54
54
`"void"` in parameterized tests in JUnit Jupiter.
55
- * `ReflectionUtils` now treats `Void` as a _wrapper_ type for the `void` pseudo-type.
56
55
* New `addResourceContainerSelectorResolver()` method in
57
56
`EngineDiscoveryRequestResolver.Builder` which supports the discovery of class path
58
57
resource based tests, analogous to the existing `addClassContainerSelectorResolver()`
Original file line number Diff line number Diff line change @@ -263,7 +263,6 @@ public enum HierarchyTraversalMode {
263
263
primitivesToWrappers .put (long .class , Long .class );
264
264
primitivesToWrappers .put (float .class , Float .class );
265
265
primitivesToWrappers .put (double .class , Double .class );
266
- primitivesToWrappers .put (void .class , Void .class );
267
266
268
267
primitiveToWrapperMap = Collections .unmodifiableMap (primitivesToWrappers );
269
268
}
Original file line number Diff line number Diff line change @@ -561,7 +561,9 @@ void isAssignableTo() {
561
561
// Wrappers to Primitives
562
562
assertTrue (ReflectionUtils .isAssignableTo (Integer .class , int .class ));
563
563
assertTrue (ReflectionUtils .isAssignableTo (Boolean .class , boolean .class ));
564
- assertTrue (ReflectionUtils .isAssignableTo (Void .class , void .class ));
564
+
565
+ // Void to void
566
+ assertFalse (ReflectionUtils .isAssignableTo (Void .class , void .class ));
565
567
566
568
// Widening Conversions from Wrappers to Primitives
567
569
assertTrue (ReflectionUtils .isAssignableTo (Integer .class , long .class ));
You can’t perform that action at this time.
0 commit comments