mockito: Stable version (1.10.19) and HEAD don't build on Android

I’m trying to upgrade my company’s mockito version to 1.10.19 and ran into Android build breakage, caused by asm class file versioning issue.

Warning: org.mockito.asm.util.CheckSignatureAdapter:
    can't find referenced class org.mockito.asm.signature.SignatureVisitor

I downloaded cglib-and-asm-1.0.jar and found that while there is org/mockito/asm/util/CheckSignatureAdapter.class in the jar, there isn’t org/mockito/asm/signature pacakge.

The cglib-and-asm-1.0-sources.jar does have the missing .java files.

This currently blocks the Mockito upgrade.

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 18 (18 by maintainers)

Most upvoted comments

@bric3 You might just be right about this. Java 8 adoption is pretty high and I assume that it could pay off for supporing easy integration with Java 8 types. Also, tests can run on a JVM v8 while continuing to compile artifacts to v7 or before. So upgrading Mockito does not necessarily entail a production upgrade.