ASM generated class version not correctly set while building JRuby 
-------------------------------------------------------------------

                 Key: JRUBY-4453
                 URL: http://jira.codehaus.org/browse/JRUBY-4453
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.4
         Environment: ~/src/jruby$ cat /etc/debian_version 
squeeze/sid
~/src/jruby$ uname -r
2.6.30-2-686
~/src/jruby$ java -version
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)

            Reporter: Shyamal Prasad
            Assignee: Thomas E Enebo


When building JRuby using a 1.6 version JDK the class files generated by the 
java compiler are for JRE 1.5 (49.0). However, all the class files generated by 
the ASM classes (generated by the call to org.jruby.anno.InvokerGenerator) are 
for JRE 1.6 (50.0). As a result the build cannot be used in a JRE 1.5 
environment.

The problem seems to be that build.xml is not passing on the javac.version 
setting on to InvokerGenerator. The attatched patch resolves this issue.

This bug was found in the Debian GNU/Linux distribution where JDK 1.6 is used 
exclusively in the testing release. Please see 
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=563028 for furthur details.

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