Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
-
None
Description
The fix for GROOVY-9408 has warmed up the cache of ResolveVisitor, thus the cache contains all classes from the default imported packages, so it is not necessary to look up non default imported classes against each defaut imported packages. For example,
In the following code, we do not need to look up java.lang.Foo, java.util.Foo, ..., groovy.util.Foo
Foo foo = new Foo() // Foo is not a default imported classes
Some test classes are defined under package groovy.lang and groovy.util, e.g. groovy.util.Person, groovy.lang.DummyGStringBase, they are not real Groovy core classes and should not be declared in the two packages, so the fake classes will not be imported be default.
Attachments
Issue Links
- relates to
-
GROOVY-9408 Avoid unnecessary looking up default import classes when resolving types
- Closed
- links to