On 14.01.19 18:23, Daniil Ovchinnikov wrote:
Hi all -

So I’ve been investigating https://youtrack.jetbrains.com/issue/IDEA-204305 for 
a while now
and found out that getClassNode() in anonymous ClassWriter in 
CompilationUnit#createClassVisitor
still uses class loader to obtain class node instead of relying on 
AsmReferenceResolver.

Is this expected?

You mean this here: https://github.com/apache/groovy/blob/master/src/main/java/org/codehaus/groovy/control/CompilationUnit.java#L899

you are correct in that this is wrong and should instead use getClassNodeResolver().

bye Jochen

Reply via email to