]
Damien Raude-Morvan commented on HHH-5789:
------------------------------------------
FYI, modified source code doesn't imply any change in generated bytecode (ie. type
erasure is applied to those generics)
Just in case I've computed md5sum of each version :
f2845bd05c7d5f1961af5e53b12616db AbstractPathImpl.class.fixed
f2845bd05c7d5f1961af5e53b12616db AbstractPathImpl.class.orig
[
fixed had 0004-strict-type-inference-with-generics-code.patch applied
orig is .class file from extracted from
Hibernate 3.5.4 doesn't build with OpenJDK 6b18-1.8.2 or greater
----------------------------------------------------------------
Key: HHH-5789
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5789
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.5.4, 3.6.0.Beta1, 3.6.0.Beta2, 3.5.5, 3.6.0.Beta3, 3.6.0.Beta4,
3.5.6, 3.6.0.CR1, 3.6.0.CR2, 3.6.0
Environment: Linux fiona 2.6.32-5-amd64 #1 SMP Thu Nov 25 18:02:11 UTC 2010
x86_64 GNU/Linux
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8.3) (6b18-1.8.3-2)
OpenJDK 64-Bit Server VM (build 16.0-b13, mixed mode)
Reporter: Miguel Landaeta
Attachments: 0004-strict-type-inference-with-generics-code.patch,
hibernate3_3.5.4.Final.buildlog
Hi,
In the BTS of Debian it was reported[1] that Hibernate 3.5.4 can not be built with recent
versions of OpenJDK6.
The compilation fails with a message similar to this one:
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
/build/user-libhibernate3-java_3.5.4.Final-4-amd64-X7BsRy/libhibernate3-java-3.5.4.Final/entitymanager/src/main/java/org/hibernate/ejb/criteria/path/AbstractPathImpl.java:[194,39]
invalid inferred types for M; inferred type does not conform to declared bound(s)
inferred: java.util.Map<K,V>
bound(s): java.util.Map<capture#829 of ?,capture#332 of ?>
This is due to more strict type inference checks in OpenJDK6 1.8.2 and greater.
Debian is going to release a stable version of their distribution soon with OpenJDK6
1.8.3, so it's required to be able to compile Hibernate with that JDK version.
Any help to fix this problem is very welcomed.
The full build log is attached.
Thanks,
1.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=606295
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: