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:45:20 +08:00
parent 8ee4156a1a
commit 77baa2aa64
1 changed files with 2 additions and 2 deletions

View File

@ -194,10 +194,10 @@ 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>) get( (MapAttribute<X,?,?>) pluralAttribute );
return (PluralAttributePath<Y>) this.get( (MapAttribute<X,?,?>) pluralAttribute );
}
else {
return (PluralAttributePath<Y>) get( (PluralAttribute) pluralAttribute );
return (PluralAttributePath<Y>) this.get( (PluralAttribute) pluralAttribute );
}
}
else {