Commit 3a5f213c authored by Anders Carling's avatar Anders Carling

Invoke super implementation instead of raising error

parent 0559f3ee
...@@ -218,7 +218,7 @@ public class RubyMessage extends RubyObject { ...@@ -218,7 +218,7 @@ public class RubyMessage extends RubyObject {
IRubyObject oneofDescriptor = rubyDescriptor.lookupOneof(context, args[0]); IRubyObject oneofDescriptor = rubyDescriptor.lookupOneof(context, args[0]);
if (oneofDescriptor.isNil()) { if (oneofDescriptor.isNil()) {
if (!hasField(args[0])) { if (!hasField(args[0])) {
throw context.runtime.newNoMethodError("undefined method `" + args[0].toString() + "' for " + metaClass.toString(), args[0].asJavaString(), metaClass); return Helpers.invokeSuper(context, this, metaClass, "method_missing", args, Block.NULL_BLOCK);
} }
return index(context, args[0]); return index(context, args[0]);
} }
...@@ -238,7 +238,7 @@ public class RubyMessage extends RubyObject { ...@@ -238,7 +238,7 @@ public class RubyMessage extends RubyObject {
} }
if (!hasField(field)) { if (!hasField(field)) {
throw context.runtime.newNoMethodError("undefined method `" + args[0].asJavaString() + "' for " + metaClass.toString(), args[0].asJavaString(), metaClass); return Helpers.invokeSuper(context, this, metaClass, "method_missing", args, Block.NULL_BLOCK);
} }
return indexSet(context, field, args[1]); return indexSet(context, field, args[1]);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment