Menu

#370 Optimizer removes handler for NoClassDefFoundError

v4.5
closed-fixed
None
7
2011-12-26
2010-07-29
No

Gerald Rosenberg reports that the optimizer sometimes erroneously removes a handler for a NoClassDefFoundError (forum/182456/topic/3786380). Example:

try {
return object instanceof SomeClass;
} catch (java.lang.NoClassDefFoundError e) {
.....
}

Discussion

  • Eric Lafortune

    Eric Lafortune - 2010-07-29
    • assigned_to: nobody --> lafortune
    • priority: 5 --> 7
     
  • Eric Lafortune

    Eric Lafortune - 2010-07-29

    The problem can be solved by adding the following line in
    src/proguard/optimize/info/ExceptionInstructionChecker.java, at line 126:

    case InstructionConstants.OP_INSTANCEOF:

    This fix will be included in the next (beta) version of ProGuard.

     
  • Eric Lafortune

    Eric Lafortune - 2010-07-29
    • milestone: --> v4.5
     
  • Eric Lafortune

    Eric Lafortune - 2011-12-26
    • status: open --> closed-fixed
     

Log in to post a comment.