Import is sometimes confused by unquoted class name ---------------------------------------------------
Key: JRUBY-3218 URL: http://jira.codehaus.org/browse/JRUBY-3218 Project: JRuby Issue Type: Bug Affects Versions: JRuby 1.1.5 Environment: I had the original problem using Java 1.6.0_07 on Leopard Reporter: Chris Walters Assignee: Thomas E Enebo Priority: Minor Non-working import (from Charles's repro on the mailing list): [headius @ cnutter:~/projects/jruby] ◆ CLASSPATH=. jruby -rjava -e "import foo._2008_12_05.MyClass; p MyClass.new" -e:1: undefined local variable or method `foo' for main:Object (NameError) [headius @ cnutter:~/projects/jruby] ◆ CLASSPATH=. jruby -rjava -e "import Java::foo._2008_12_05.MyClass; p MyClass.new" /Users/headius/projects/jruby/lib/ruby/site_ruby/1.8/builtin/java/ast.rb:49:in `get_proxy_or_package_under_package': cannot load Java class foo._2008_12_05 (NameError) from /Users/headius/projects/jruby/lib/ruby/site_ruby/1.8/builtin/javasupport/java.rb:43:in `method_missing' from -e:1 Working import: [headius @ cnutter:~/projects/jruby] ◆ cat foo/_2008_12_05/MyClass.java package foo._2008_12_05; public class MyClass {} [headius @ cnutter:~/projects/jruby] ◆ javac foo/_2008_12_05/MyClass.java [headius @ cnutter:~/projects/jruby] ◆ CLASSPATH=. jruby -rjava -e "import 'foo._2008_12_05.MyClass'; p MyClass.new" #<Java::Foo_2008_12_05::MyClass:0x5381298a @[EMAIL PROTECTED]> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email