Minimal project for reproducing an error when running ZKM from Gradle.
For simplicity, the com.zelix.gradle.plugin
plugin is included in the buildSrc directory as part of the
project.
- Set
ZKM_JAR_PATH
in buildSrc/gradle.properties to the location of the ZKM jar ( version 17.0 or later). - Run
./gradlew zkmTask
(using a Java 11 or later JDK).
An error similar to the following occurs:
ZKM: FATAL ERROR: Serious Errors detected during execution of 'obfuscate' statement. : ERROR: Method 'sample_b(java.lang.Object, java.lang.Object)' in class '/path/to/project/build/install/sample/lib/commons-lang3-3.9.jar!org/apache/commons/lang3/builder/EqualsBuilder.class' appears to be invalid (5) : 'Stack mismatch with types: Ljava/util/Set; I : 'analyzing the control flow of method 'isRegistered(java.lang.Object, java.lang.Object)' in class '/path/to/project/build/install/sample/lib/commons-lang3-3.9.jar!org/apache/commons/lang3/builder/EqualsBuilder.class' : 'sample_a/sample_a/sample_a/sample_a/sample_b/sample_f' (A)''