File tree 1 file changed +10
-1
lines changed
presentation-compiler/src/main/dotty/tools/pc
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ class CompilerSearchVisitor(
22
22
private def isAccessible (sym : Symbol ): Boolean = try
23
23
sym != NoSymbol && sym.isPublic && sym.isStatic
24
24
catch
25
+ case err : AssertionError =>
26
+ logger.log(Level .WARNING , err.getMessage())
27
+ false
25
28
case NonFatal (e) =>
26
29
reports.incognito.create(
27
30
Report (
@@ -64,8 +67,14 @@ class CompilerSearchVisitor(
64
67
.stripSuffix(" $" )
65
68
.split(" \\ $" )
66
69
67
- val added = toSymbols(pkg, innerPath.toList).filter(visitSymbol)
70
+ val added =
71
+ try toSymbols(pkg, innerPath.toList).filter(visitSymbol)
72
+ catch
73
+ case NonFatal (e) =>
74
+ logger.log(Level .WARNING , e.getMessage(), e)
75
+ Nil
68
76
added.size
77
+ end visitClassfile
69
78
70
79
def visitWorkspaceSymbol (
71
80
path : java.nio.file.Path ,
You can’t perform that action at this time.
0 commit comments