From: Adam R. <ad...@ex...> - 2011-12-15 21:42:26
|
Hmmm, I recall but cant find right now, that the target can allow you to exploit modern things in the newer JVM that arent in the older (1.6) JVM - if I was you I would target the JVM that you are using. Also see here - http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javac.html#seealso The note about bootstrap classes is interesting, and the thing that I think you were experiencing On 15 December 2011 20:54, Martin Holmes <mh...@uv...> wrote: > Based on this, we'll stop making that change. That should reduce the > warnings. On our build with Oracle 1.6, we're currently only seeing two > warnings which seem to be part of the same issue: > > 1 [javac] > /var/lib/jenkins/jobs/eXist1.5_WAR_OracleJDK1.6/workspace/extensions/modules/src/org/exist/xquery/modules/xslfo/RenderXXepProcessorAdapter.java:63: > warning: non-varargs call of varargs method with inexact argument type > for last parameter; > > 2 [javac] cast to java.lang.Object[] for a non-varargs call and to > suppress this warning > > Cheers, > Martin > > On 11-12-15 12:33 PM, Dannes Wessels wrote: >> On 15 dec. 2011, at 18:05, Martin Holmes<mh...@uv...> wrote: >> >>> but that the target should be 1.7, >>> because that's the JDK version of the compiler, and the architecture on >>> which we're planning to run the results. Am I right? >> >> Not really. The most important thing what target=1.7 effectively does, is that the jars cannot be run on 1.6 anymore (by setting a magic set of bytes in the class). The content of the jars does not change however. >> >> It is not needed to set it to 1.7, it will not make the classes run better of different or so. 1.6 is a good value here. Java classes are always forward compatible..... >> >> D. >> ------------------------------------------------------------------------------ >> 10 Tips for Better Server Consolidation >> Server virtualization is being driven by many needs. >> But none more important than the need to reduce IT complexity >> while improving strategic productivity. Learn More! >> http://www.accelacomm.com/jaw/sdnl/114/51507609/ > > > > ------------------------------------------------------------------------------ > 10 Tips for Better Server Consolidation > Server virtualization is being driven by many needs. > But none more important than the need to reduce IT complexity > while improving strategic productivity. Learn More! > http://www.accelacomm.com/jaw/sdnl/114/51507609/ > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open -- Adam Retter eXist Developer { United Kingdom } ad...@ex... irc://irc.freenode.net/existdb |