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 Tue, 22 Apr 2008 01:39:21 GMT

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

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

    Attachment: OPENJPA-536.patch

Modification of the patch:
1. use an internal LinkedList instead of involving a new class
2. add a private method addToBuffer() to MetaDataRepository to enable MetaDataInheritanceComparator.compare()
when adding to buffer
3. use default remove() of LinkedList
4. set the default value of InheritanceComparator._base to Object.class
5. add one test case testGetMetaData. delete 2 test methods from TestMetaDataInheritanceComparator:
testInheritanceComparatorWithoutBase() and testMetaDataInheritanceComparatorWithoutBase().

Please help to review.

> 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
>             Fix For: 1.1.0
>
>         Attachments: 364202.patch, InheritanceComparator.diff, meta_testcase.zip, MetaDataRepository.diff,
OPENJPA-536.patch, OPENJPA-536.patch, OPENJPA-536.patch, OPENJPA-536.patch, OPENJPA-536.patch,
OPENJPA-536.patch, OPENJPA-536.patch
>
>
> 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