Return-Path: X-Original-To: apmail-openjpa-dev-archive@www.apache.org Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C150EC2B7 for ; Wed, 9 May 2012 12:58:13 +0000 (UTC) Received: (qmail 63905 invoked by uid 500); 9 May 2012 12:58:13 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 63836 invoked by uid 500); 9 May 2012 12:58:13 -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 63816 invoked by uid 99); 9 May 2012 12:58:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2012 12:58:13 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2012 12:58:12 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 08D4943C72F for ; Wed, 9 May 2012 12:57:52 +0000 (UTC) Date: Wed, 9 May 2012 12:57:52 +0000 (UTC) From: "jieryn (JIRA)" To: dev@openjpa.apache.org Message-ID: <1674950145.44094.1336568272038.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (OPENJPA-2187) metamodel generation with default package creates invalid class MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org jieryn created OPENJPA-2187: ------------------------------- Summary: metamodel generation with default package creates invalid class Key: OPENJPA-2187 URL: https://issues.apache.org/jira/browse/OPENJPA-2187 Project: OpenJPA Issue Type: Bug Components: jpa Affects Versions: 2.2.0 Reporter: jieryn Priority: Minor Default package @Entity gets wrong metamodel class generated: {code}import javax.persistence.Basic; import javax.persistence.Entity; @Entity public final class BuggyMetamodel { @Basic private final String string = "OpenJPA Rocks!"; } {code} produces {code}/** * Generated by OpenJPA MetaModel Generator Tool. **/ package ; import javax.persistence.metamodel.SingularAttribute; @javax.persistence.metamodel.StaticMetamodel (value=BuggyMetamodel.class) @javax.annotation.Generated (value="org.apache.openjpa.persistence.meta.AnnotationProcessor6",date="Wed May 09 08:49:27 EDT 2012") public class BuggyMetamodel_ { public static volatile SingularAttribute string; } {code} Please notice the "package ;" which is invalid Java code. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira