openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amy Yang (JIRA)" <j...@apache.org>
Subject [jira] Updated: (OPENJPA-536) getMetaData() causes OutOfMemoryError under some cases
Date Fri, 14 Mar 2008 07:15:24 GMT

     [ 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.


Mime
View raw message