Skip to content

Commit

Permalink
Update to WALA 1.6.2 (#798)
Browse files Browse the repository at this point in the history
We use a [new WALA feature](wala/WALA#1286) to
only include the `java.base` module in the `AnalysisScope` used for
JarInfer. JarInfer does not require all JDK standard library modules to
be part of the analysis scope, just enough to make a valid class
hierarchy, and `java.base` suffices. This should speed up runs of
JarInfer, and in particular it speeds up our JarInfer regression tests.
  • Loading branch information
msridhar committed Aug 11, 2023
1 parent f14b43d commit bbc696c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def versions = [
// The version of Error Prone that NullAway is compiled and tested against
errorProneApi : errorProneVersionToCompileAgainst,
support : "27.1.1",
wala : "1.6.1",
wala : "1.6.2",
commonscli : "1.4",
autoValue : "1.10.2",
autoService : "1.1.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ private void analyzeFile(String pkgName, String inPath, boolean includeNonPublic
} else if (!new File(inPath).exists()) {
return;
}
AnalysisScope scope = AnalysisScopeReader.instance.makePrimordialScope(null);
AnalysisScope scope = AnalysisScopeReader.instance.makeBasePrimordialScope(null);
scope.setExclusions(
new FileOfClasses(
new ByteArrayInputStream(DEFAULT_EXCLUSIONS.getBytes(StandardCharsets.UTF_8))));
Expand Down

0 comments on commit bbc696c

Please sign in to comment.