Permalink
Browse files

canonical_name instead of full_name

  • Loading branch information...
1 parent e592abe commit 7a3323aee36244fcfb4d7d58f1cf272666d1608a @vishnugopal vishnugopal committed Nov 21, 2012
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 = ""

0 comments on commit 7a3323a

Please sign in to comment.