the integratated joda time version should be in a distinct package hierarchy
----------------------------------------------------------------------------

                 Key: JRUBY-3559
                 URL: http://jira.codehaus.org/browse/JRUBY-3559
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
    Affects Versions: JRuby 1.2, JRuby 1.1.5
         Environment: when using a different version of jodatime with buildr
            Reporter: Tuomas Karkkainen
         Attachments: joda.zip

jruby.jar contains a version of joda-time.  if an application uses a different 
version of jodatime, jruby loads the version from jruby.jar first.

an example is a project using buildr and jruby which contains a new version 
such as 1.6 of joda time as a dependency.  the project will not compile if it 
uses methods that are not in the old version such as
org.joda.time.Duration.standardHours(long);
http://joda-time.sourceforge.net/api-release/org/joda/time/Duration.html

an easy fix would be to move the jodatime classes in jruby from org.joda.time 
to jruby.org.joda.time for example.  this can be done in eclipse in seconds.  
the patch will be somewhat large ofcourse.

output of buildr package:
--
compiling joda:hello into /home/erlang/joda/hello/target/classes
/home/erlang/joda/hello/src/main/java/Hello.java:4: cannot find symbol
symbol  : method standardHours(long)
location: class org.joda.time.Duration
                org.joda.time.Duration.standardHours(1l);
                                      ^
1 error
--

the attachment is a buildr project that will not compile.

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