ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Toomey, Kevin H (CTO Org)" <>
Subject RE: Dual Java Compilers/Replacement for antcontrib
Date Tue, 15 Feb 2011 23:32:35 GMT
Might not be the same but I remember one where a new BigDecimal(int i)
caused a problem. That constructor doesn't exist in JDK 1.4 but the
compiler would convert it to BigDecimal(double d) under the covers.

Java 1.6 does allow the BigDecimal(int i) so it left it alone and
compiled it as is. 

The 1.4 JRE was not pleased.

It's always something....


-----Original Message-----
From: Scot P. Floess [] 
Sent: Tuesday, February 15, 2011 5:00 PM
To: Ant Users List
Subject: RE: Dual Java Compilers/Replacement for antcontrib

> Here's an altogether different approach, but if your developers' goal 
> is to control what version of byte code is created, have them utilize 
> the -source and -target attributes of the <javac> task.  I have my 
> developers do that and it allows me to use the latest JDK for all 
> builds (400+ development streams) while they're able to build 
> components and applications executing in JVMs from 1.4 --> 1.6

Its been awhile...but if memory serves, I had a situation at work where
we were using a newer JDK and compiling for an older VM.  Some method
that existed in the new JDK didn't exist in the old - and targeting for
the older VM didn't complain about the method not being there.
Honestly, I cannot rememebr the exact scenario - its been over a year.

However, just be aware in case that happens to you :)

Scot P. Floess

RHCT  (Certificate Number 605010084735240)

Chief Architect FlossWare

Chief Architect JPlate
Chief Architect JavaPIM
Chief Architect Keros

To unsubscribe, e-mail:
For additional commands, e-mail:

This communication, including attachments, is for the exclusive use of addressee and may contain
proprietary, confidential and/or privileged information.  If you are not the intended recipient,
any use, copying, disclosure, dissemination or distribution is strictly prohibited.  If you
are not the intended recipient, please notify the sender immediately by return e-mail, delete
this communication and destroy all copies.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message