Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 58093 invoked from network); 24 Mar 2010 17:29:51 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Mar 2010 17:29:51 -0000 Received: (qmail 38029 invoked by uid 500); 24 Mar 2010 17:29:51 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 38006 invoked by uid 500); 24 Mar 2010 17:29:51 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 37998 invoked by uid 99); 24 Mar 2010 17:29:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Mar 2010 17:29:50 +0000 X-ASF-Spam-Status: No, hits=-1121.9 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Mar 2010 17:29:49 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 691E5234C4E2 for ; Wed, 24 Mar 2010 17:29:27 +0000 (UTC) Message-ID: <1850311343.465061269451767429.JavaMail.jira@brutus.apache.org> Date: Wed, 24 Mar 2010 17:29:27 +0000 (UTC) From: "Jerry Carter (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Commented: (OPENJPA-1562) EntityManager:Refresh on Removed entity does not trigger IllegalArgumentException In-Reply-To: <2082585405.208181268330067555.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OPENJPA-1562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12849297#action_12849297 ] Jerry Carter commented on OPENJPA-1562: --------------------------------------- The patch works for me. I tested with beta3 build from the staging area. > EntityManager:Refresh on Removed entity does not trigger IllegalArgumentException > --------------------------------------------------------------------------------- > > Key: OPENJPA-1562 > URL: https://issues.apache.org/jira/browse/OPENJPA-1562 > Project: OpenJPA > Issue Type: Bug > Affects Versions: 2.0.0-beta2 > Environment: Mac OS X, OpenJPA 2.0.0-beta2, Spring 3.0 > Reporter: Jerry Carter > Assignee: Dianne Richards > Priority: Minor > Attachments: openjpa1562.tar.zip, patch.txt, simple_entity_tests.txt > > > My application unit tests turned up some unexpected behavior from basic OpenJPA entity manager functions. It appears, for instance, that a detached entity can still be refreshed. I decided to write a few basic tests (attached) which report five potential errors. This does not go into the testing of cascading behavior which would require additional work. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.