jdk 1.6 vs 1.7

Heiko W.Rupp hrupp at redhat.com
Mon Sep 10 08:38:03 UTC 2012


Hey,

Am 07.09.2012 um 00:34 schrieb John Mazzitelli:

> I just tried to build master with Java7, and the webservices module failed to build with an odd error. I switched to Java6, and it built fine.

This is a "know feature". Luckily webservices will go away in RHQ 4.6, so you can just skip/remove them in your rhq-on-as7 branch.

> 1) Does anyone try to build master with Java7 and does it work? Because right now, it appears it does not.

Have a look at this BZ, which lists some issues we encountered with building with JDK7: https://bugzilla.redhat.com/show_bug.cgi?id=682878
Especially for Webservices some things in jax-b have changed. But then builiding the webservices always failed for me on OS/X with jdk6,
as our build system tries to create a directory in a place that is only writable for root.
And the ant version is much too old to be able to skip that part (and the resulting path) in OS/X

> 
> 2) What's the thinking on Java support (at least from a build perspective)? When can we move to Java7 as the exclusive build JDK for RHQ?

I think as the bits need for some time still run on java6 (EOL is now Feb 2013), it makes no real difference. I would like to use some of the new
language constructs in JDK7 rather sooner than later, but ...

-- 
Reg. Adresse: Red Hat GmbH, Technopark II, Haus C, 
Werner-von-Siemens-Ring 14, D-85630 Grasbrunn
Handelsregister: Amtsgericht München HRB 153243
Geschaeftsführer:  Mark Hegarty, Charlie Peters, Michael Cunningham, Charles Cachera



More information about the rhq-devel mailing list