Skip to content
Browse files

Fix JRUBY-6337.

Better error message for missing class in dotted package syntax.
  • Loading branch information...
1 parent 5fb71ba commit 6c3ca3f9f940431485c969c706de13cff4a5c49f @headius headius committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/org/jruby/javasupport/Java.java
View
2 src/org/jruby/javasupport/Java.java
@@ -941,7 +941,7 @@ private static RubyModule getProxyOrPackageUnderPackage(ThreadContext context, f
// we'll try as a package
return getJavaPackageModule(runtime, fullName);
} else {
- throw runtime.newNameError("uppercase package names not accessible this way (`" + fullName + "')", fullName);
+ throw runtime.newNameError("capitalized package or class not found (`" + fullName + "')", fullName);
}
}

0 comments on commit 6c3ca3f

Please sign in to comment.
Something went wrong with that request. Please try again.