adamw/veripacks

IncompatibleClassChangeError

Opened this issue · 3 comments

An error is thrown when trying to execute tests:

java.lang.IncompatibleClassChangeError: class org.veripacks.reader.accessdefinitions.ClassAnnotationsVisitor has interface org.objectweb.asm.ClassVisitor as super class
    at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:455)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:367)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at org.veripacks.reader.accessdefinitions.ClassAccessDefinitionsReader.readFor(ClassAccessDefinitionsReader.scala:12)
    at org.veripacks.reader.MetadataReader$$anonfun$1.apply(MetadataReader.scala:19)
    at org.veripacks.reader.MetadataReader$$anonfun$1.apply(MetadataReader.scala:15)
    at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:252)
    at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:252)
    at scala.collection.immutable.List.foreach(List.scala:381)
    at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:252)
    at scala.collection.immutable.List.flatMap(List.scala:344)
    at org.veripacks.reader.MetadataReader.readUsagesAndAccessDefinitions(MetadataReader.scala:15)
    at org.veripacks.Veripacks.verify(Veripacks.scala:20)
    at org.veripacks.Veripacks.verify(Veripacks.scala:7)
    at com.ofg.accounting.PackageSpec.should fail if anyone tries to break package dependencies(PackageSpec.groovy:10)

Executed for JDK 7. What else do you need? :)

Which version of org.ow2.asm / asm do you have on the classpath?
Veripacks depends on 5.0.2, maybe you have sth newer?

--- org.jacoco:org.jacoco.ant:0.6.2.201302030002
+--- org.jacoco:org.jacoco.core:0.6.2.201302030002
| --- org.ow2.asm:asm-all:4.1
+--- org.jacoco:org.jacoco.report:0.6.2.201302030002
| +--- org.jacoco:org.jacoco.core:0.6.2.201302030002 (*)
| --- org.ow2.asm:asm-all:4.1
--- org.jacoco:org.jacoco.agent:0.6.2.201302030002

| +--- cglib:cglib:2.2
| | --- asm:asm:3.1

or maybe I have sth older ;) so org.ow2.asm should be bumped up?