[hibernate-dev] Java 6, 7 and 8... oh my!

Steve Ebersole steve at hibernate.org
Wed Apr 1 12:46:27 EDT 2015


Sanne, I went back and tried applying this -target flag but have not had
any luck with it.  I applied it through the XJC2Task Ant task:

        ant.xjc(
                destdir: "${jaxbTargetDir}",
                binding: hbmXjb.path,
                schema: hbmXsd.path,
                extension: 'true',
                target: '2.0'
        ) {
            arg line:     '-Xinheritance -Xsimplify'
        }

But it had o effect in the end.

On Wed, Apr 1, 2015 at 6:34 AM, Steve Ebersole <steve at hibernate.org> wrote:

> Baseline on Java 8?  Hmm... Well thanks for tempting me :)
>
> What do you mean by "be able to experiment with significant API
> improvements"?
>
> On Tue, Mar 31, 2015 at 7:18 PM, Sanne Grinovero <sanne at hibernate.org>
> wrote:
>
>> I wouldn't disagree on requiring Java 7.
>> I probably wouldn't disagree with Java 8 either, after all we're not
>> removing older versions of Hibernate from any download location and
>> we'll still support and maintain some older versions. It would
>> actually be nice to have the latest ORM version to be able to
>> experiment with significant API improvements.
>>
>> FYI Hibernate Search is requiring Java 7 already, and our CI servers
>> are already testing our projects with JDK9 as well.
>>
>> That said, Java 6 is still being supported by some vendors. Not by
>> Oracle, but Red Hat and SAP will support it for much longer.
>>
>> -- Sanne
>>
>> On 1 April 2015 at 01:04, Steve Ebersole <steve at hibernate.org> wrote:
>> > So we now have to deal with a multi-jdk build in Hibernate ORM.  We need
>> > Java 8 in order to compile the new hibernate-java8 module.
>> >
>> > I wanted to remain compatible with Java 6 for the rest.  However, I ran
>> > into a snag there because of JAXB which we now use (in conjunction with
>> > StAX) to process XML in ORM.  ANyway, the JAX generation creates a model
>> > that is only compatible with Java 7.  I have not yet had time to
>> > investigate this deeply.  But it has to do with a change in the
>> definition
>> > of javax.xml.bind.annotation.XmlElement and a change in its definition
>> > between 1.6 and 1.7 to add a new
>> > attribute javax.xml.bind.annotation.XmlElement#required.
>> >
>> > If anyone is familiar with this situation, I'd love to hear some options
>> > before I spend a lot of time investigating it.
>> >
>> > The other option is that we say we are going to drop Java 6 support
>> since
>> > it has been unsupported now for, what, 3 years?
>> > _______________________________________________
>> > hibernate-dev mailing list
>> > hibernate-dev at lists.jboss.org
>> > https://lists.jboss.org/mailman/listinfo/hibernate-dev
>>
>
>


More information about the hibernate-dev mailing list