java.lang.ClassFormatError: Invalid pc in LineNumberTable
Java class file shrinker, optimizer, obfuscator, and preverifier
Brought to you by:
guardsquare
ClassFormatError for Groovy class after ProGuard processing
Using Gradle plugin: net.sf.proguard:proguard-gradle:6.2.0
JDK 1.8.0_202
Windows 10, Linux
java.lang.ClassFormatError: Invalid pc in LineNumberTable in class file com/haulmont/studio/intellij/project/resolve/CubaModelBuilderImpl
This class and all it's references are kept.
Options used:
dontshrink
dontoptimize
keepattributes 'Annotation,SourceFile,LineNumberTable,Signature'
keeppackagenames
keepdirectories
class files before and after processing attached
Last edit: Alexander Gaslov 2019-10-29
Thanks for the report, I inspected the class files and it looks like that some nop instructions are being removed by the LineNumberAttribute table is not updated correctly.
We will try to reproduce and fix this asap.
For the future, please create tickets on the github project.
We have found the problem and fixed it. The fix will be included in the upcoming release 6.2.1.
Fixed and will be included in v6.2.1.