Skip to content

Commit 38b28d8

Browse files
committed
Add information to call graph build error.
1 parent c840242 commit 38b28d8

File tree

1 file changed

+6
-0
lines changed
  • edu.cuny.hunter.streamrefactoring.core/src/edu/cuny/hunter/streamrefactoring/core/analysis

1 file changed

+6
-0
lines changed

edu.cuny.hunter.streamrefactoring.core/src/edu/cuny/hunter/streamrefactoring/core/analysis/Stream.java

+6
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,13 @@ protected void buildCallGraph() throws IOException, CoreException, CallGraphBuil
788788
// Doesn't make sense. Maybe we need to collect all enclosing
789789
// methods
790790
// and use those as entry points.
791+
try {
791792
getAnalysisEngine().buildSafeCallGraph(options);
793+
} catch (IllegalStateException e) {
794+
LOGGER.log(Level.SEVERE, e, () -> "Exception encountered while building call graph for Stream: " + this
795+
+ " in project: " + this.getCreationJavaProject());
796+
throw e;
797+
}
792798
// TODO: Can I slice the graph so that only nodes relevant to the
793799
// instance in question are present?
794800

0 commit comments

Comments
 (0)