javabytes icon indicating copy to clipboard operation
javabytes copied to clipboard

Cleanup fails when nested classes are used

Open Clashsoft opened this issue 6 years ago • 0 comments

Example code:

public class HelloWorld {
  <T> HelloWorld() {
    class Foo {
      T get() { return null; }
    }
  }
}

Shows disassembled code:

Unable to cleanup.

I believe the error stems from this line:

https://github.com/jkeam/javabytes/blob/74caae85b18fdd1ca959041da7abd925a2e10644/app/models/Disassembler.scala#L148

It fails if there is more than one .class file, because the non-empty folder cannot be deleted.

Clashsoft avatar Dec 10 '19 22:12 Clashsoft