groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Theodorou <blackd...@gmx.org>
Subject Re: ASM class resolution
Date Tue, 15 Jan 2019 07:05:16 GMT
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

Mime
View raw message