| Summary: | JPA2: Metamodel initialization of BasicCollection using parameterized generics fails to find member at current inheritance level | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Michael OBrien <michael.f.obrien> |
| Component: | Eclipselink | Assignee: | Michael OBrien <michael.f.obrien> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P2 | CC: | eclipselink.orm-inbox |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| URL: | http://wiki.eclipse.org/EclipseLink/Development/JPA_2.0/metamodel_api#DI_25:_20090616:_Inherited_parameterized_generics_for_Element_Collections_.28Basic.29 | ||
| Whiteboard: | |||
| Bug Depends on: | 266912, 297928, 322585 | ||
| Bug Blocks: | 322184, 303063 | ||
| Attachments: | |||
|
Description
Michael OBrien
>This will fix open design issue # 25 http://wiki.eclipse.org/EclipseLink/Development/JPA_2.0/metamodel_api#DI_25:_20090616:_Inherited_parameterized_generics_for_Element_Collections_.28Basic.29 >fix essentially was not to do reflection on inherited class when the method does not exist there - for collection mappings Testing Browser (JPA) [Java Application] org.eclipse.persistence.testing.framework.ui.TestingBrowserFrame at localhost:60335 Thread [main] (Suspended) MappedSuperclassTypeImpl<X>(ManagedTypeImpl<X>).getTypeClassFromAttributeOrMethodLevelAccessor(DatabaseMapping) line: 1365 MappedSuperclassTypeImpl<X>(ManagedTypeImpl<X>).initialize() line: 1195 MetamodelImpl.initialize() line: 434 MetamodelImpl.<init>(DatabaseSession) line: 109 MetamodelImpl.<init>(EntityManagerSetupImpl) line: 128 EntityManagerSetupImpl.getMetamodel() line: 2003 JavaSECMPInitializer.initPersistenceUnits(Archive, Map, PersistenceInitializationHelper) line: 262 JavaSECMPInitializer.initialize(Map) line: 216 >aField Field (id=153) clazz Class<T> (org.eclipse.persistence.testing.models.jpa.inherited.RatedBeerConsumer) (id=65) name "acclaims" (id=161) type Class<T> (java.util.Collection) (id=78) aType Class<T> (java.util.Collection) (id=78) Created attachment 176173 [details]
Collection attributes that are not inherited (exist on current type) that used to cause NPE on metamodel initialization now do reflection only on current class
Collection attributes that are not inherited (exist on current type) that used to cause NPE on metamodel initialization now do reflection only on current class
>Reviewed by Guy P.
Created attachment 178560 [details]
Collection attributes that are not inherited (exist on current type) that used to cause NPE on metamodel initialization now do reflection only on current class
>see SVN rev# 8158 for 2.2 https://fisheye2.atlassian.com/changelog/eclipselink/?cs=8158 The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |