Skip to content

Commit 31f7c5d

Browse files
committed
Workaround #155.
1 parent 5b703c0 commit 31f7c5d

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
@@ -589,6 +589,12 @@ private void inferInitialOrdering(EclipseProjectAnalysisEngine<InstanceKey> engi
589589
// get the use value number for the stream creation.
590590
int valueNumber = getUseValueNumberForCreation(engine);
591591

592+
if (valueNumber < 0) {
593+
LOGGER.warning("Use value number: " + valueNumber + " for stream creation: "
594+
+ this.getCreation().getName() + " is invalid. Most likely #155.");
595+
throw new UnhandledCaseException("Encountered unhandled case, most likely an embedded stream.");
596+
}
597+
592598
// get the enclosing method node.
593599
CGNode node = null;
594600
try {

0 commit comments

Comments
 (0)