Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Align Module#const_defined? in the 1.8 mode to that in the 1.9 mode.

  • Loading branch information...
commit 00868c0cff31f49d42f7991b530e078b15073bbc 1 parent 2de8e3b
@BanzaiMan BanzaiMan authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/org/jruby/RubyModule.java
View
2  src/org/jruby/RubyModule.java
@@ -2517,7 +2517,7 @@ public RubyArray class_variables19(ThreadContext context) {
@JRubyMethod(name = "const_defined?", required = 1, compat = RUBY1_8)
public RubyBoolean const_defined_p(ThreadContext context, IRubyObject symbol) {
// Note: includes part of fix for JRUBY-1339
- return context.runtime.newBoolean(fastIsConstantDefined(validateConstant(symbol.asJavaString()).intern()));
+ return context.runtime.newBoolean(fastIsConstantDefined19(validateConstant(symbol.asJavaString()).intern()));
}
@JRubyMethod(name = "const_defined?", required = 1, optional = 1, compat = RUBY1_9)
Please sign in to comment.
Something went wrong with that request. Please try again.