Col-E / Recaf

The modern Java bytecode editor
https://recaf.coley.software
MIT License
5.96k stars 462 forks source link

Empty inner classes with CFR #855

Closed ME1312 closed 1 day ago

ME1312 commented 2 weeks ago

Describe the bug

When using CFR with the default settings on an outer class, inner classes appear to be devoid of code.

To Reproduce

Steps to reproduce the behavior:

  1. Open a class that contains an inner class with CFR in Recaf 4
  2. Scroll to the inner class
  3. Zero, false, null, etc.

Screenshots

Outer class

Inner class

Col-E commented 2 days ago

Can you provide a sample which reproduces the issue consistently?

ME1312 commented 2 days ago

Yes. Problem.zip contains a class that contains an inner class that you can have a look at.

Col-E commented 1 day ago

78093b848c1ca74e8b6bec7c03ebd6c90d3601b9 - I don't recall why that was added in the first place but that would certainly do it ðŸ«