Closed samczsun closed 8 years ago
This is pretty much the same kind of issue as the LinkageError. It's not clear to me that trying to handle it is worth the effort.
Ah, my bad. I forgot to turn on -xmagicthrow for this case. It displays the code with that so I suppose it's good enough.
Output:
I realize that 'new' is one of the opcodes that can't be adequately represented in Java source code. However, in this case it should be a plausible solution to simply check whether the target of the new statement is able to be instantiated or not.