Bug#875358: Fails with Java 9, >2.0.0 required to work

Chris West debian at fau.xxx
Sun Sep 10 20:41:52 UTC 2017


Source: powermock
Version: 1.6.6
Severity: normal
User: debian-java at lists.debian.org
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:
https://github.com/powermock/powermock/issues/783#issuecomment-326992288

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 java.lang.reflect.InvocationTargetExcep...
  TestAlgorithmSupport.initializationError ?? Objenesis java.lang.reflect.Invoca...
  TestBogusReasonMessage.initializationError ?? Objenesis java.lang.reflect.Invo...
  TestCNames.initializationError ?? Objenesis java.lang.reflect.InvocationTarget...


Cheers,
Chris.



More information about the pkg-java-maintainers mailing list