Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

canonical_name instead of full_name

  • Loading branch information...
commit 7a3323aee36244fcfb4d7d58f1cf272666d1608a 1 parent e592abe
@vishnugopal vishnugopal authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/jruby/java/core_ext/object.rb
View
2  src/jruby/java/core_ext/object.rb
@@ -43,7 +43,7 @@ def java_import(*import_classes)
# package can be nil if it's default or no package was defined by the classloader
if package
package_name = package.name
- elsif java_class.full_name =~ /(.*)\.[^.]$/
+ elsif java_class.canonical_name =~ /(.*)\.[^.]$/
package_name = $1
else
package_name = ""
Please sign in to comment.
Something went wrong with that request. Please try again.