Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 29212 invoked from network); 27 Oct 2006 17:06:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Oct 2006 17:06:23 -0000 Received: (qmail 74765 invoked by uid 500); 27 Oct 2006 17:06:34 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 74744 invoked by uid 500); 27 Oct 2006 17:06:34 -0000 Mailing-List: contact open-jpa-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: open-jpa-dev@incubator.apache.org Delivered-To: mailing list open-jpa-dev@incubator.apache.org Received: (qmail 74735 invoked by uid 99); 27 Oct 2006 17:06:34 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Oct 2006 10:06:34 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Oct 2006 10:06:21 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 230F97142CE for ; Fri, 27 Oct 2006 10:05:17 -0700 (PDT) Message-ID: <9906613.1161968717141.JavaMail.root@brutus> Date: Fri, 27 Oct 2006 10:05:17 -0700 (PDT) From: "Abe White (JIRA)" To: open-jpa-dev@incubator.apache.org Subject: [jira] Resolved: (OPENJPA-68) PCClassFileTransformer.isEnhanced() fails because PersistenceCapable package name is wrong In-Reply-To: <6182377.1161929480022.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/OPENJPA-68?page=all ] Abe White resolved OPENJPA-68. ------------------------------ Resolution: Fixed Thanks, fixed. (FTR, the correct name is org/apache/openjpa/enhance/PersistenceCapable) > PCClassFileTransformer.isEnhanced() fails because PersistenceCapable package name is wrong > ------------------------------------------------------------------------------------------ > > Key: OPENJPA-68 > URL: http://issues.apache.org/jira/browse/OPENJPA-68 > Project: OpenJPA > Issue Type: Bug > Components: jpa > Environment: Win32, JDK1.5, OpenJPA 0.9.0-incubating > Reporter: Corey Klaasmeyer > Priority: Critical > > On line 201, the fully qualified interface name should be "org/openjpa/enhance/PersistenceCapable" not "openjpa/enhance/PersistenceCapable": > /** > * Analyze the bytecode to see if the given class definition implements > * {@link PersistenceCapable}. > */ > private static boolean isEnhanced(byte[] b) { > ConstantPoolTable table = new ConstantPoolTable(b); > int idx = table.getEndIndex(); > idx += 6; // skip access, cls, super > int ifaces = table.readUnsignedShort(idx); > int clsEntry, utfEntry; > String name; > for (int i = 0; i < ifaces; i++) { > idx += 2; > clsEntry = table.readUnsignedShort(idx); > utfEntry = table.readUnsignedShort(table.get(clsEntry)); > name = table.readString(table.get(utfEntry)); > if ("openjpa/enhance/PersistenceCapable".equals(name)) > return true; > } > return false; > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira