Menu

#768 java.lang.ClassFormatError: Invalid pc in LineNumberTable

v6.2.1
closed-fixed
nobody
None
Medium
2019-12-05
2019-10-29
No

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

2 Attachments

Discussion

  • Alexander Gaslov

    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
  • T. Neidhart

    T. Neidhart - 2019-12-03

    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.

     
  • T. Neidhart

    T. Neidhart - 2019-12-03

    We have found the problem and fixed it. The fix will be included in the upcoming release 6.2.1.

     
  • T. Neidhart

    T. Neidhart - 2019-12-05
    • status: open --> closed-fixed
    • Group: v6.1 --> v6.2.1
     
  • T. Neidhart

    T. Neidhart - 2019-12-05

    Fixed and will be included in v6.2.1.

     

Log in to post a comment.

MongoDB Logo MongoDB