Re: javac bootclasspath and java8

2014-12-01 Thread Mark Derricutt
On 1 Dec 2014, at 22:23, Mark Struberg wrote: > 2.) enhance the ToolchainManager to let lookup configured Toolchains and use > this in maven-compiler-plugin and maven-test-plugin to use a 'preferred' > Toolchain version. E.g. if target=1.7 is defined it should try to resolve > this Toolchain.

Re: javac bootclasspath and java8

2014-12-01 Thread Robert Scholte
target=1.7 in both cases. There are 2 options: either use javac -bootclasspath and point it to the 'correct' rt.jar + other jdk libs, or just switch the whole environment. Roberts suggestion was to use the Maven Toolchain system:http://maven.apache.org/plugins/maven-toolchains-plugin/

Re: javac bootclasspath and java8

2014-12-01 Thread Igor Fedorenko
ifferent bytecode than when compiling with Java7 JDK. Even if you use target=1.7 in both cases. There are 2 options: either use javac -bootclasspath and point it to the 'correct' rt.jar + other jdk libs, or just switch the whole environment. Roberts suggestion was to use the Maven

Re: javac bootclasspath and java8

2014-12-01 Thread Mark Struberg
Hi Paul! Txs, this is definitely one possible direction in which we could aim. LieGrue, strub > On Saturday, 29 November 2014, 11:18, Paul Moloney > wrote: > > Hi > > I had written this rule for the enforcer plugin which actually checks the > label of jdk version in toolchains against out

Re: javac bootclasspath and java8

2014-12-01 Thread Stephen Connolly
rn new JDK16RTUser(); > >>} > >> } > >> > >> public static IRTUser getInstance() { return instance; } > >> > >>This approach has worked fine for me on multiple occasions. > >> > >> > >>Jochen > >> &g

Re: javac bootclasspath and java8

2014-12-01 Thread Mark Struberg
gt;> over at Apache OpenWebBeans: >>> >>> https://issues.apache.org/jira/browse/OWB-952 >>> >>> As a short summary: the classes provided in rt.jar of Java8 are slightly >>> different than the ones from Java7 and 6. Similar big differences have been &

Re: javac bootclasspath and java8

2014-11-30 Thread Stephen Connolly
rovided in rt.jar of Java8 are slightly > different than the ones from Java7 and 6. Similar big differences have been > seen in the Java4 to 5 transition. > > Thus if you compile your project with Java8 you might get different > bytecode than when compiling with Java7 JDK.

Re: javac bootclasspath and java8

2014-11-30 Thread Jochen Wiedmann
ransition. > Thus if you compile your project with Java8 you might get different bytecode > than when compiling with Java7 JDK. Even if you use target=1.7 in both cases. > > There are 2 options: either use javac -bootclasspath and point it to the > 'correct' rt.j

Re: javac bootclasspath and java8

2014-11-29 Thread Paul Moloney
Hi I had written this rule for the enforcer plugin which actually checks the label of jdk version in toolchains against output of javc --version. It works for my limited scenario @work and definetely requires more attention to cope with non oracle compilers and the apache way. https://github.com/

Re: javac bootclasspath and java8

2014-11-28 Thread Mark Struberg
Hi! > This lets you selectively forbid certain methods The problem is that the methods used are perfectly fine. The API methods used in our program do exist even in Java6. But they get coerced to different methods when compiling with Java8. And those new methods do not exist in Java7 and ol

Re: javac bootclasspath and java8

2014-11-27 Thread Dawid Weiss
There is also a very cool tool from the Lucene land, written by Uwe Schindler -- https://code.google.com/p/forbidden-apis/ This lets you selectively forbid certain methods from your codebase (and the default list of forbidden methods has a strong rationale to be discouraged -- locale-sensitive me

Re: javac bootclasspath and java8

2014-11-27 Thread Stephen Connolly
On Thursday, 27 November 2014, Mark Derricutt wrote: > On 28 Nov 2014, at 10:32, Igor Fedorenko wrote: > > > Out of curiosity, why do you want to get exactly the same bytecode? Does > > the code compiled with java8 not work under java7? > > Mostly - it's due to method signature resolution. For i

Re: javac bootclasspath and java8

2014-11-27 Thread Mark Derricutt
On 28 Nov 2014, at 10:32, Igor Fedorenko wrote: > Out of curiosity, why do you want to get exactly the same bytecode? Does > the code compiled with java8 not work under java7? Mostly - it's due to method signature resolution. For instance in the JDK 5 -> 6 change, some functions that used to ta

Re: javac bootclasspath and java8

2014-11-27 Thread Raphael Ackermann
ces have been > seen in the Java4 to 5 transition. > > Thus if you compile your project with Java8 you might get different > bytecode than when compiling with Java7 JDK. Even if you use target=1.7 in > both cases. > > > > There are 2 options: either use javac -bootclassp

Re: javac bootclasspath and java8

2014-11-27 Thread Igor Fedorenko
different bytecode than when compiling with Java7 JDK. Even if you use target=1.7 in both cases. There are 2 options: either use javac -bootclasspath and point it to the 'correct' rt.jar + other jdk libs, or just switch the whole environment. Roberts suggestion was to use the Maven

javac bootclasspath and java8

2014-11-27 Thread Mark Struberg
have been seen in the Java4 to 5 transition. Thus if you compile your project with Java8 you might get different bytecode than when compiling with Java7 JDK. Even if you use target=1.7 in both cases. There are 2 options: either use javac -bootclasspath and point it to the 'correct&#x

[jira] Moved: (MSUREFIRE-5) surefire should include bootclasspath when running tests

2005-12-19 Thread Maria Odea Ching (JIRA)
(was: MNG-1303) Project: Maven 2.x Surefire Plugin (was: Maven 2) > surefire should include bootclasspath when running tests > > > Key: MSUREFIRE-5 > URL: http://jira.codehaus.org/browse/MSUREFIRE-5

[jira] Moved: (MCOMPILER-20) add bootclasspath support to forked java compiler

2005-12-19 Thread Jason van Zyl (JIRA)
: jira (was: Maven) Key: MCOMPILER-20 (was: MNG-973) Project: Maven 2.x Compiler Plugin (was: Maven 2) > add bootclasspath support to forked java compiler > - > > Key: MCOMPILER-20 > URL: http://ji

[jira] Closed: (MNG-1303) surefire should include bootclasspath when running tests

2005-12-13 Thread Jason van Zyl (JIRA)
[ http://jira.codehaus.org/browse/MNG-1303?page=all ] Jason van Zyl closed MNG-1303: -- Resolution: Fixed This test case now works. > surefire should include bootclasspath when running te

[jira] Commented: (MNG-1303) surefire should include bootclasspath when running tests

2005-12-11 Thread John Casey (JIRA)
include bootclasspath when running tests > > > Key: MNG-1303 > URL: http://jira.codehaus.org/browse/MNG-1303 > Project: Maven 2 > Type: Bug > Components: maven-surefire-plugin > Versi

[jira] Created: (MPASPECTJ-22) bootclasspath support

2005-12-06 Thread Shinobu Kawai Yoshida (JIRA)
bootclasspath support - Key: MPASPECTJ-22 URL: http://jira.codehaus.org/browse/MPASPECTJ-22 Project: maven-aspectj-plugin Type: Wish Versions: 3.2 Reporter: Shinobu Kawai Yoshida Priority: Minor It would be great if the plugin

[jira] Updated: (MNG-973) add bootclasspath support to forked java compiler

2005-12-05 Thread John Casey (JIRA)
[ http://jira.codehaus.org/browse/MNG-973?page=all ] John Casey updated MNG-973: --- Fix Version: (was: 2.0.1) 2.0.2 > add bootclasspath support to forked java compiler > - > >

[jira] Commented: (MNG-1303) surefire should include bootclasspath when running tests

2005-11-29 Thread John Casey (JIRA)
test case, but since it dramatically changes the classloading strategy for surefire, I wanted jason to take a look at it. > surefire should include bootclasspath when running tests > > > Key: MNG-1303 >

[jira] Commented: (MNG-1303) surefire should include bootclasspath when running tests

2005-11-06 Thread Brett Porter (JIRA)
uld include bootclasspath when running tests > > > Key: MNG-1303 > URL: http://jira.codehaus.org/browse/MNG-1303 > Project: Maven 2 > Type: Bug > Components: maven-surefire-plugin > V

[jira] Updated: (MNG-1303) surefire should include bootclasspath when running tests

2005-11-03 Thread Brett Porter (JIRA)
.grasgxl.core.ConfigurationLoader.load(ConfigurationLoader.java:107) Worked properly with Maven 1. Summary: surefire should include bootclasspath when running tests (was: Parsing XML document commons-digester fails in testcase) the fix for this is to have the bootclasspath included in the

[jira] Updated: (MNG-973) add bootclasspath support to forked java compiler

2005-09-22 Thread Brett Porter (JIRA)
[ http://jira.codehaus.org/browse/MNG-973?page=all ] Brett Porter updated MNG-973: - Fix Version: 2.0-beta-3 > add bootclasspath support to forked java compiler > - > > Key: MNG-973 &g

[jira] Created: (MNG-973) add bootclasspath support to forked java compiler

2005-09-22 Thread Brett Porter (JIRA)
add bootclasspath support to forked java compiler - Key: MNG-973 URL: http://jira.codehaus.org/browse/MNG-973 Project: Maven 2 Type: Improvement Components: maven-compiler-plugin Reporter: Brett Porter this can

Re: Bootclasspath

2003-12-04 Thread Jason van Zyl
On Thu, 2003-12-04 at 12:58, Alain Javier Guarnieri del Gesu wrote: > How does one specify the the bootclasspath to the java task? I don't > see it in the java plugin code. I've hard coded my custom > bootclasspath into a copy of the plugin. Stop cross-posting between th

Bootclasspath

2003-12-04 Thread Alain Javier Guarnieri del Gesu
How does one specify the the bootclasspath to the java task? I don't see it in the java plugin code. I've hard coded my custom bootclasspath into a copy of the plugin. Even better than setting a bootclasspath would be the ability to prepend jars to the bootclasspath specified by javac.