Skip to content
Browse files
Better error when java_import'ing names with ::. See #2075.
Thanks to @byteit101 for the patch!
  • Loading branch information
headius committed Nov 2, 2014
1 parent cb4581c commit f232a7780de6ac1fcd6e2a4b8d8da05005a125ef
Showing 1 changed file with 1 addition and 0 deletions.
@@ -23,6 +23,7 @@ def java_import(*import_classes)
case import_class
when String
# pull in the class
raise "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"

0 comments on commit f232a77

Please sign in to comment.