Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Module
java.base
opens package java.lang
to unnamed module
This is only for JDK >= 16. Without this fix some unit tests that uses Mockito will fail with the following error: ``` Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @cafebabe ``` We notice this error only after upgrade JaCoCo to version 0.8.9 because prior this version the error was being hide by a side effect of JaCoCo. See: jacoco/jacoco#1334 See: jacoco/jacoco#1328 See: #86 (comment) See: #86 (comment) See: #86 (comment) See: #87 This is a workaround and the added profile should be removed in the future in order of a definitive fix (maybe Mockito upgrade). This reverts commit 31a8d68.
- Loading branch information