Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix unnecessary scan for absent and bytecode only classes.
During compilation class references are resolved by JDT using compiled bytecode. If the class is not part of the current compilation, JDT will query a NameEnvironment for the bytocode of the class which GWT might provide from its caches. In the case that is not in any cache GWT falls back to loading from the classpath (which is actually only allowed for annotations). In such cases the result is not cached forcing resource scans every time (even if the class is not found at all). This process in noticeable when resolving unqualified JSNI references. This patch solves the issue by caching the results of class patch queries. Bug: issue 9006. Change-Id: I92e78da8e39fb4f4a2321cac45d43ee6e69467b4
- Loading branch information
Showing
1 changed file
with
42 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters