[ 
https://issues.apache.org/jira/browse/OPENJPA-536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Amy Yang updated OPENJPA-536:
-----------------------------

    Attachment: MetaDataRepository.diff

Here is a better fix, I think. It can pass both my test case and 
TestMetaDataInheritanceComparator.
Basically the comparator doesn't have problem. But when comparing classes, the 
base class is needed to be set. Otherwise it might only compares the class name.

> getMetaData() causes OutOfMemoryError under some cases
> ------------------------------------------------------
>
>                 Key: OPENJPA-536
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-536
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jpa
>    Affects Versions: 1.0.2, 1.0.3
>         Environment: Sun JDK 5
>            Reporter: Amy Yang
>            Priority: Blocker
>         Attachments: InheritanceComparator.diff, meta_testcase.zip, 
> MetaDataRepository.diff
>
>
> There are 3 classes: Item, Artist and Person. Artist extends Person. 
> Invoking JPAFacadeHelper.getMetaData(emf, Item.class) will cause 
> OutOfMemoryError thrown by 
> org.apache.openjpa.meta.MetaDataRepository.processBuffer().

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to