Exception in the metamodel population when raw types are used in collections

Description

None

Environment

None

Activity

Show:
Emmanuel Bernard
January 22, 2010, 9:14 PM

I've avoided the exception. For a complete fix, has to be answered.

Emmanuel Bernard
January 22, 2010, 9:16 PM

The original exception is
java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType
at org.hibernate.ejb.metamodel.AttributeFactory.getSignatureType(AttributeFactory.java:850)
at org.hibernate.ejb.metamodel.AttributeFactory$PluralAttributeMetadataImpl.<init>(AttributeFactory.java:735)
at org.hibernate.ejb.metamodel.AttributeFactory$PluralAttributeMetadataImpl.<init>(AttributeFactory.java:712)
at org.hibernate.ejb.metamodel.AttributeFactory.determineAttributeMetadata(AttributeFactory.java:507)
at org.hibernate.ejb.metamodel.AttributeFactory.buildAttribute(AttributeFactory.java:84)
at org.hibernate.ejb.metamodel.MetadataContext.wrapUp(MetadataContext.java:177)
at org.hibernate.ejb.metamodel.MetamodelImpl.buildMetamodel(MetamodelImpl.java:66)
at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:79)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:769)
at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:746)
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:94)
at org.hibernate.ejb.test.TestCase.setUp(TestCase.java:62)
at org.hibernate.ejb.test.TestCase.runBare(TestCase.java:181)
at com.intellij.junit3.JUnit3IdeaTestRunner.doRun(JUnit3IdeaTestRunner.java:108)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:60)

Steve Ebersole
March 21, 2011, 7:07 PM

Bulk closing stale resolved issues

Fixed

Assignee

Emmanuel Bernard

Reporter

Emmanuel Bernard

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure