Skip to content

Commit

Permalink
Workaround #136.
Browse files Browse the repository at this point in the history
  • Loading branch information
khatchad committed Dec 21, 2017
1 parent c6f436c commit 29c7035
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,11 @@ private void inferInitialOrdering() throws IOException, CoreException, ClassHier
this.setInitialOrdering(Ordering.ORDERED);
break;
default:
throw new IllegalStateException(
"Unhandled expression type qualified name: " + expressionTypeQualifiedName);
// Fall back for now #136.
Ordering defaultOrdering = Ordering.ORDERED;
LOGGER.warning(() -> "Unhandled expression type qualified name: " + expressionTypeQualifiedName
+ ". Falling back to: " + defaultOrdering + ".");
this.setInitialOrdering(defaultOrdering);
}
} else { // instance method.
int valueNumber = getUseValueNumberForCreation();
Expand All @@ -611,7 +614,6 @@ private void inferInitialOrdering() throws IOException, CoreException, ClassHier

// Possible types: check each one.
calledMethod = (IMethod) calledMethodBinding.getJavaElement();

ordering = this.getOrderingInference().inferOrdering(possibleTypes, calledMethod);
} catch (NoniterableException e) {
LOGGER.log(Level.WARNING, "Stream: " + this.getCreation()
Expand Down

0 comments on commit 29c7035

Please sign in to comment.