Source: powermock
Version: 1.6.6
Severity: normal
Usertags: default-java9

Powermock fails to work properly on Java 9.

Upstream say that it will only be supported in Powermock 2, as yet
unreleased. Powermock 2 will also only support Mockito 2, not Mockito 1:

Please upgrade Powermock to version 2.

Powermock itself seems to build (no idea why, no tests?), but it breaks
other packages, at least: dnssecjava, who's build log is:

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 7.262 sec <<< 
FAILURE! - in org.jitsi.dnssec.unbound.rpl.UnboundTests
initializationError(org.jitsi.dnssec.unbound.rpl.UnboundTests)  Time elapsed: 
0.008 sec  <<< ERROR!
org.objenesis.ObjenesisException: java.lang.reflect.InvocationTargetException
Caused by: java.lang.reflect.InvocationTargetException
Caused by: java.lang.IllegalAccessError: class 
jdk.internal.reflect.ConstructorAccessorImpl loaded by 
org/powermock/core/classloader/MockClassLoader cannot access 
jdk/internal/reflect superclass jdk.internal.reflect.MagicAccessorImpl

Results :

Tests in error: 
  RTest.initializationError ?? Objenesis 
  TestAlgorithmSupport.initializationError ?? Objenesis 
  TestBogusReasonMessage.initializationError ?? Objenesis 
  TestCNames.initializationError ?? Objenesis 


This is the maintainer address of Debian's Java team
Please use for discussions and questions.

Reply via email to