Skip to content

Commit

Permalink
Trap symbol entering failures
Browse files Browse the repository at this point in the history
  • Loading branch information
jkschneider committed Aug 30, 2016
1 parent 444ec02 commit 109e719
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/kotlin/com/netflix/java/refactor/ast/AstParser.kt
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,10 @@ class AstParser(val classpath: Iterable<Path>?) {
// if we are in a reparsing phase, we want to ensure that the contents of the file get re-read
fileObjects.forEach { pfm.flushCache(it) }

val cus = fileObjects
.map { compiler.parse(it) }
.enterAll()
val cus = fileObjects.map { compiler.parse(it) }

try {
cus.enterAll()
compiler.attribute(compiler.todo)
} catch(ignore: Throwable) {
// when symbol entering fails on problems like missing types, attribution can often times proceed
Expand Down

0 comments on commit 109e719

Please sign in to comment.