AW: about source and target in maven-compiler-plugin

2015-03-30 Thread Sebastian Oerding
...@gmail.com] Gesendet: Montag, 30. März 2015 23:50 An: Maven Users List Betreff: Re: about source and target in maven-compiler-plugin Hi Sebastian, For your comments, "Merely setting the target option does not guarantee that your code actually runs on a JRE with the specified version"

AW: about source and target in maven-compiler-plugin

2015-03-30 Thread Sebastian Oerding
cht- Von: Lin Ma [mailto:lin...@gmail.com] Gesendet: Montag, 30. März 2015 23:43 An: Maven Users List Betreff: Re: about source and target in maven-compiler-plugin Hi Sebastian, The sample is interesting. In your sample, you are using source 1.5 in pom.xml? Thanks. regards, Lin On Mon, Mar 30, 2015 a

AW: about source and target in maven-compiler-plugin

2015-03-30 Thread Sebastian Oerding
--Ursprüngliche Nachricht- Von: Lin Ma [mailto:lin...@gmail.com] Gesendet: Montag, 30. März 2015 23:40 An: Maven Users List Betreff: Re: about source and target in maven-compiler-plugin Thanks Sebastian, Where to find the super pom.xml? regards, Lin On Mon, Mar 30, 2015 at 1:18 AM, Se

Re: about source and target in maven-compiler-plugin

2015-03-30 Thread Lin Ma
an > > > -Ursprüngliche Nachricht- > Von: Lin Ma [mailto:lin...@gmail.com] > Gesendet: Montag, 30. März 2015 09:56 > An: Maven Users List > Betreff: Re: about source and target in maven-compiler-plugin > > Thanks all the same Sebastian. Your reply is very helpful and

Re: about source and target in maven-compiler-plugin

2015-03-30 Thread Lin Ma
special case but using features such as > assertions not supported does really cause a compiler error (the maven > installation used as JDK 1.6) > > With regards > Sebastian > > -Ursprüngliche Nachricht- > Von: Lin Ma [mailto:lin...@gmail.com] > Gesendet: Montag, 30.

Re: about source and target in maven-compiler-plugin

2015-03-30 Thread Lin Ma
> > Furthermore details about setting the compiler level can be found for > > example in the Sun Certified Java Programmer Study Guide. > > > > With regards > > Sebastian > > > > -Ursprüngliche Nachricht- > > Von: Lin Ma [mailto:lin...@gmail.com

AW: about source and target in maven-compiler-plugin

2015-03-30 Thread Sebastian Oerding
@gmail.com] Gesendet: Montag, 30. März 2015 09:56 An: Maven Users List Betreff: Re: about source and target in maven-compiler-plugin Thanks all the same Sebastian. Your reply is very helpful and bring us further thoughts. regards, Lin On Mon, Mar 30, 2015 at 12:47 AM, Sebastian Oerding <

AW: about source and target in maven-compiler-plugin

2015-03-30 Thread Sebastian Oerding
iffer Maven Plugin to verify your code doesn't use unintended APIs. With regards Sebastian -Ursprüngliche Nachricht- Von: Lin Ma [mailto:lin...@gmail.com] Gesendet: Montag, 30. März 2015 09:56 An: Maven Users List Betreff: Re: about source and target in maven-compiler-plugin Than

AW: about source and target in maven-compiler-plugin

2015-03-30 Thread Sebastian Oerding
on: Lin Ma [mailto:lin...@gmail.com] Gesendet: Montag, 30. März 2015 09:56 An: Maven Users List Betreff: Re: about source and target in maven-compiler-plugin Thanks all the same Sebastian. Your reply is very helpful and bring us further thoughts. regards, Lin On Mon, Mar 30, 2015 at 12:47 AM, Sebasti

Re: about source and target in maven-compiler-plugin

2015-03-30 Thread Lin Ma
t- > Von: Lin Ma [mailto:lin...@gmail.com] > Gesendet: Montag, 30. März 2015 09:38 > An: Maven Users List > Betreff: Re: about source and target in maven-compiler-plugin > > Hi Maxim, > > Why compiler will not fail? Supposing StringBuilder is a class in JDK 1.6, &g

Re: about source and target in maven-compiler-plugin

2015-03-30 Thread Lin Ma
tion > comes > > up > > > > > (like 'invokedynamic') this really makes a change. Or another > example > > > > (I'm > > > > > not really sure about it): As far as I think a stack map has been > > added > > > > > from Jav

AW: about source and target in maven-compiler-plugin

2015-03-30 Thread Sebastian Oerding
e Nachricht- Von: Lin Ma [mailto:lin...@gmail.com] Gesendet: Montag, 30. März 2015 09:38 An: Maven Users List Betreff: Re: about source and target in maven-compiler-plugin Hi Maxim, Why compiler will not fail? Supposing StringBuilder is a class in JDK 1.6, but we force compiler to use 1.5 which

Re: about source and target in maven-compiler-plugin

2015-03-30 Thread Lin Ma
Sebastian > > > -Ursprüngliche Nachricht- > Von: Lin Ma [mailto:lin...@gmail.com] > Gesendet: Montag, 30. März 2015 09:20 > An: Maven Users List > Betreff: Re: about source and target in maven-compiler-plugin > > Thanks Sebastian, > > 1. I am using JDK 1.7/1.8

Re: about source and target in maven-compiler-plugin

2015-03-30 Thread Maxim Solodovnik
added > > > > from Java 5 to Java 1.6. This should improve performance and makes > > subtle > > > > differences when ClassNotFoundException are thrown. You can use a JDK > > to > > > > compile code for different but lower versions. This way can benefit > >

Re: about source and target in maven-compiler-plugin

2015-03-30 Thread Lin Ma
; > > from Java 5 to Java 1.6. This should improve performance and makes > subtle > > > differences when ClassNotFoundException are thrown. You can use a JDK > to > > > compile code for different but lower versions. This way can benefit > from > > > some optimi

AW: about source and target in maven-compiler-plugin

2015-03-30 Thread Sebastian Oerding
: Lin Ma [mailto:lin...@gmail.com] Gesendet: Montag, 30. März 2015 09:20 An: Maven Users List Betreff: Re: about source and target in maven-compiler-plugin Thanks Sebastian, 1. I am using JDK 1.7/1.8 for both development and deployment in runtime, shall I change 1.5 of source and target to 1.7/1.8

Re: about source and target in maven-compiler-plugin

2015-03-30 Thread Maxim Solodovnik
gt; compile code for different but lower versions. This way can benefit from > > some optimizations which weren't available with the old JDK and are > > compatible. > > > > With regards > > Sebastian > > > > -Ursprüngliche Nachricht- > > V

Re: about source and target in maven-compiler-plugin

2015-03-30 Thread Lin Ma
optimizations which weren't available with the old JDK and are > compatible. > > With regards > Sebastian > > -Ursprüngliche Nachricht- > Von: Lin Ma [mailto:lin...@gmail.com] > Gesendet: Montag, 30. März 2015 07:46 > An: Maven Users List > Betreff: a

AW: about source and target in maven-compiler-plugin

2015-03-30 Thread Sebastian Oerding
eren't available with the old JDK and are compatible. With regards Sebastian -Ursprüngliche Nachricht- Von: Lin Ma [mailto:lin...@gmail.com] Gesendet: Montag, 30. März 2015 07:46 An: Maven Users List Betreff: about source and target in maven-compiler-plugin Hello Maven masters, F

Re: about source and target in maven-compiler-plugin

2015-03-30 Thread Lin Ma
Thanks Olivier, I am using JDK 1.8 for development and shall I change source and target to 1.8? I think the most popular version of Java are 1.7 or 1.8, not sure why Maven makes 1.5 as default? regards, Lin On Sun, Mar 29, 2015 at 10:53 PM, Olivier Lamy wrote: > On 30 March 2015 at 16:46, Lin

Re: about source and target in maven-compiler-plugin

2015-03-29 Thread Olivier Lamy
On 30 March 2015 at 16:46, Lin Ma wrote: > Hello Maven masters, > > For maven-compiler-plugin(a sample below), have a quick question. I read > this document (http://maven.apache.org/plugins/maven-compiler-plugin/), > and > confused what means source and target 1.5 here, it seems it is an internal

about source and target in maven-compiler-plugin

2015-03-29 Thread Lin Ma
Hello Maven masters, For maven-compiler-plugin(a sample below), have a quick question. I read this document (http://maven.apache.org/plugins/maven-compiler-plugin/), and confused what means source and target 1.5 here, it seems it is an internal version number of Maven, independent of JDK? ma