Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Use canonical_name instead of full_name #404

merged 1 commit into from

2 participants


This seems to be a bug. full_name is not available in JavaClass


This actually results in a warble war throwing

"undefined method `full_name' for class org.sqlite.JDBC:Java::JavaClass" at jruby/java/core_ext/object.rb:46:in `java_import'

Seriously weird error.

@BanzaiMan BanzaiMan merged commit e4a4831 into jruby:master

1 check passed

Details default The Travis build passed
@BanzaiMan BanzaiMan was assigned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 21, 2012
  1. @vishnugopal
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/jruby/java/core_ext/object.rb
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 =
- elsif java_class.full_name =~ /(.*)\.[^.]$/
+ elsif java_class.canonical_name =~ /(.*)\.[^.]$/
package_name = $1
package_name = ""
Something went wrong with that request. Please try again.