RFR: 8305990: Stripping debug info of ASM 9.5 fails

Chen Liang liach at openjdk.org
Mon Apr 17 21:12:42 UTC 2023


On Fri, 14 Apr 2023 14:02:46 GMT, Adam Sotona <asotona at openjdk.org> wrote:

> Classfile API didn't handle transformations of class files version 50 and below correctly. 
> 
> Proposed fix have two parts: 
> 1. Inflation of branch targets does not depend on StackMapTable attribute presence for class file version 50 and below. Alternative fallback implementation is provided. 
> 2. StackMapTable attribute is not generated for class file versions below 50.
> 
> StackMapsTest is also extended to test this patch.
> 
> Please review.
> 
> Thanks,
> Adam

Since this takes care of Java 6, what about versions before Java 5 that have jsr and ret, which are currently unsupported in the Classfile API? They are no longer supported due to introduction of stack map tables, but they can totally appear in older compiled try-finally statements.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/13478#issuecomment-1512090693


More information about the core-libs-dev mailing list