jrubyc generates classes with the wrong names
---------------------------------------------

                 Key: JRUBY-5724
                 URL: http://jira.codehaus.org/browse/JRUBY-5724
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.6.1
            Reporter: Jordan Sissel
            Assignee: Thomas E Enebo


This worked previously in 1.6.0, breaks in 1.6.1

Problem is the java class name generated by jrubyc is incorrect.

{noformat}
snack(~) % cat test.rb
puts "Hello world!"
snack(~) % jrubyc test.rb
stringsnack(~) % strings ./test.class | head -1
6ruby/jit/FILE_11ED3A61A4256FA54D81BAAFFD4F6A02089FE4DB
snack(~) % java test
Exception in thread "main" java.lang.NoClassDefFoundError: test (wrong name: 
ruby/jit/FILE_11ED3A61A4256FA54D81BAAFFD4F6A02089FE4DB)
{noformat}

And in 1.6.0 for confirmation of prior-working:
{noformat}

snack(~) % rvm use 1.6.0
Using /home/jls/.rvm/gems/jruby-1.6.0
snack(~) % jrubyc test.rb                
Compiling test.rb to class test
snack(~) % !strings
strings ./test.class | head -1
test
{noformat}

-- 
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


Reply via email to