I know people have been using hibernate with jdk 1.6, based on comments on this forum. But my worry is: Is it *
reliable enough* to use the current distribution of hibernate 3.3.2 with jre 1.6? One of the comments in HHH-2412:
Quote:
We've not had much luck running Hibernate (generally 3.2.4.sp1.cp06) under JDK 1.6. The problems can be difficult to detect, so an initial switch might appear to work. We can recreate a number of errors, but pinpointing the exact issue has been difficult - but a switch back to JDK 1.5 always resolves anomalies. We would see this error on one of our systems - after the exception occurred the session factory goes bad and only a restart allows continuation.
...
With JDK 1.5 planned to sunset in October of 2009 we see an urgent need for a 1.6 upgrade.
Another comment:Quote:
The "difficult to detect" errors generally fall into the category of problems where Hibernate code is relying on iteration of non-ordered collections. This is something that changed in at least the sun 1.6 jdk. Those uses need to be cleaned up to require the properly ordered collections when/where needed.
Recently, we also ran our application with jre 1.6 (and hibernate 3.2.5) with seemingly no problems. But we tested only a few scenarios. Just that it will be great if someone can confirm that above is a problem only when using hibernate binaries
compiled with jdk 1.6 and its not a problem with current binary distribution of hibernate (which has been compiled using jdk < 1.6). Else, we'll take the plunge and qa report problems, if any :-)