HHH-5789 Hibernate 3.5.4 doesn't build with OpenJDK 6b18-1.8.2 or greater

This commit is contained in:
Strong Liu 2011-08-20 10:58:39 +08:00
parent 77baa2aa64
commit af0043ae6a
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ public abstract class AbstractPathImpl<X>
if ( attribute.isCollection() ) {
final PluralAttribute<X,Y,?> pluralAttribute = (PluralAttribute<X,Y,?>) attribute;
if ( PluralAttribute.CollectionType.MAP.equals( pluralAttribute.getCollectionType() ) ) {
return (PluralAttributePath<Y>) this.get( (MapAttribute<X,?,?>) pluralAttribute );
return (PluralAttributePath<Y>) this.<Object,Object,Map<Object, Object>>get( (MapAttribute) pluralAttribute );
}
else {
return (PluralAttributePath<Y>) this.get( (PluralAttribute) pluralAttribute );