Be warned that caching may prove to be complicated: what if a class in the same compile unit is named `List`, or a class in the same package? This is one of the reasons the lookup is not cached for this.

Le ven. 25 mai 2018 à 10:17, Daniel.Sun <> a écrit :
I am going to cache the class names of default imported packages, e.g.
`List`, `ArrayList`, `Map`, `HashMap`, etc.

And try to find the name of ClassNode instance in the class names cache, if
not found, `return false`(add the check at the line[1]). The polished logic
can avoid unnecessary resolving and improve the resolving performance

It's a pity that I have not found any approach to get all classes of the
given package, e.g. `java.lang`, `java.util`
Any help is appreciated. (Note: We can not use 3rd party library excluding
antlr, asm, cli)


Sent from: