Skip to content

Commit

Permalink
Better error when java_import'ing names with ::. See #2075.
Browse files Browse the repository at this point in the history
Thanks to @byteit101 for the patch!
  • Loading branch information
headius committed Nov 2, 2014
1 parent cb4581c commit f232a77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/ruby/jruby/java/core_ext/object.rb
Expand Up @@ -23,6 +23,7 @@ def java_import(*import_classes)
case import_class
when String
# pull in the class
raise ArgumentError.new "must use jvm-style name: #{import_class}" if import_class.include? "::"
import_class = JavaUtilities.get_proxy_class(import_class)
when Module
if import_class.respond_to? "java_class"
Expand Down

0 comments on commit f232a77

Please sign in to comment.