-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Validator - latest Java 6 compatible version ?
PostPosted: Tue Aug 19, 2014 4:14 am 
Newbie

Joined: Tue Aug 19, 2014 3:57 am
Posts: 1
Validator 5.1.2 final does call
Code:
java.util.Collections.emptyIterator()
(in ...engine.ValidatorImpl). That needs Java 7.

Is this intentionally - and if yes, who knows the latest Validator for Java 6 ?

Thank you,
Ruben

(I've had no luck searching through the release notes...)


Top
 Profile  
 
 Post subject: Re: Validator - latest Java 6 compatible version ?
PostPosted: Tue Aug 19, 2014 9:26 am 
Hibernate Team
Hibernate Team

Joined: Sat Jan 24, 2009 12:46 pm
Posts: 388
Hi Ruben,

Thanks for that report.

The change is indeed not intentional, Hibernate Validator is supposed to be compatible with Java 6 for the time being. I've filed HV-924 [1] for fixing this. 5.1.1.Final should work as it doesn't invoke emptyIterator(). Actually we use Animal Sniffer [2] to protect agains such incompatabilities, but unfortunately the plug-in didn't yet run as part of the default build :(

Hth,

--Gunnar

[1] https://hibernate.atlassian.net/browse/HV-924
[2] http://mojo.codehaus.org/animal-sniffer/

_________________
Visit my blog at http://musingsofaprogrammingaddict.blogspot.com/


Top
 Profile  
 
 Post subject: Re: Validator - latest Java 6 compatible version ?
PostPosted: Thu Sep 18, 2014 4:12 pm 
Newbie

Joined: Mon Dec 27, 2004 8:10 pm
Posts: 7
Location: Redwood City, CA
I see this issue is fixed in 5.1.3, but that build does not yet appear to be available. Any idea when that version will be released?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.