Skip to content
Browse files
[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 2502d3f3bcd7630e36a04b3130e45ba32dbb2f4d
Showing with 1 addition and 5 deletions.
  1. +1 −5 core/src/main/java/org/jruby/truffle/nodes/dispatch/
@@ -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();

0 comments on commit 2502d3f

Please sign in to comment.