You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the flags -compileReport -XcompilerMetrics -XsoycDetailed, the
compiler fails with java.util.EmptyStackException at com.google.gwt.core.ext.soyc.impl.StoryRecorder.analyzeFragment(StoryRecorder.java:179)
The code responsible for this is at StoryRecorder.java:179:
while (!dependencyScope.peek().range.contains(range)) {
popAndRecord(dependencyScope, fragment);
}
It's trying to peek() from an empty stack. The solution might be as simple as adding a check for isEmpty(), like this:
while (!dependencyScope.isEmpty() && !dependencyScope.peek().range.contains(range)) {
popAndRecord(dependencyScope, fragment);
}
Steps to reproduce
Do a compile with the flags -compileReport -XcompilerMetrics -XsoycDetailed
Activity
Avoid EmptyStackException in SOYC (#9808)