Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Use canonical_name instead of full_name #404

Merged
merged 1 commit into from

2 participants

@vishnugopal

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

@vishnugopal

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
@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
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 = ""
Something went wrong with that request. Please try again.