commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Naveen <nawee...@yahoo.com>
Subject RE: [JXPath1.2] jar with jdk1.3?
Date Tue, 19 Jul 2005 00:54:47 GMT

Thanks a lot to everyone the jar indeed is
compatabile. Specal thnks to Dmitri for his reply.


--- Simon Kitching <skitching@apache.org> wrote:

> On Mon, 2005-07-18 at 18:25 -0500, Alfredo Ledezma
> Melendez wrote:
> > 
> > Hello:
> > 
> > AFAIK is not possible. Generally you can't use a
> jar, war or ear built on a
> > newer version with an old one.
> 
> This is not necessarily the case. The java 1.4
> compiler will generate
> class files that are compatible with 1.2 JVMs by
> default. And any java
> compiler can generate classfiles compatible with any
> earlier JVM version
> by specifying the -target option.
> 
> The question is whether the JXPath source code uses
> features that are
> only present in java 1.4 or not. It would certainly
> be nice for the
> project docs to say explicitly whether this is the
> case or not.
> 
> However you can test this yourself - download the
> jxpath source
> distribution and compile it ("maven jar"). If it
> compiles then it is
> compatible with java 1.3, and you can then use
> either your custom-built
> version or go back to using the official binary jar
> even though it is
> build with java 1.4.
> 
> NB: There are a few corner cases where code is
> compilable under both 1.3
> and 1.4 but code compiled with 1.4 won't run under
> 1.3. However they are
> pretty unlikely to be struck in real life. If you
> want to be extra
> careful, you can check this by running the unit
> tests *compiled with
> java 1.3* against the binary jar from the official
> binary download. If
> the tests pass then that is good proof that the
> binary jar is compatible
> with java 1.3.
> 
> 
> Regards,
> 
> Simon
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> commons-user-help@jakarta.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message