Skip to content


Browse files Browse the repository at this point in the history
[Truffle] Allow methods to exist on only one of TrueClassNodes or Fal…

Prior to this, both classes needed to contain the same exact set of methods or the methods in the set difference would result in an UnsupportedOperationException.
  • Loading branch information
nirvdrum committed Nov 26, 2014
1 parent ad1da0b commit 2502d3f
Showing 1 changed file with 1 addition and 5 deletions.
Expand Up @@ -120,18 +120,14 @@ private Object doUnboxedObject(
lookup(callerClass, getContext().getCoreLibrary().box(false), methodName.toString(),
ignoreVisibility, dispatchAction);

if (falseMethod == null) {
throw new UnsupportedOperationException();

final Assumption trueUnmodifiedAssumption =

final RubyMethod trueMethod =
lookup(callerClass, getContext().getCoreLibrary().box(true), methodName.toString(),
ignoreVisibility, dispatchAction);

if (trueMethod == null) {
if ((falseMethod == null) && (trueMethod == null)) {
throw new UnsupportedOperationException();

Expand Down

0 comments on commit 2502d3f

Please sign in to comment.