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 219F493C8 for ; Thu, 13 Oct 2011 21:54:37 +0000 (UTC) Received: (qmail 87733 invoked by uid 500); 13 Oct 2011 21:54:36 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 87687 invoked by uid 500); 13 Oct 2011 21:54:36 -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 87649 invoked by uid 99); 13 Oct 2011 21:54:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Oct 2011 21:54:36 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,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; Thu, 13 Oct 2011 21:54:33 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 3E5E93075C5 for ; Thu, 13 Oct 2011 21:54:12 +0000 (UTC) Date: Thu, 13 Oct 2011 21:54:12 +0000 (UTC) From: "Albert Lee (Created) (JIRA)" To: dev@openjpa.apache.org Message-ID: <942708799.11307.1318542852256.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (OPENJPA-2060) AnnotationProcess failed to generate metadata for List[] attribute in entity 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 AnnotationProcess failed to generate metadata for List[] attribute in entity ------------------------------------------------------------------------------------ Key: OPENJPA-2060 URL: https://issues.apache.org/jira/browse/OPENJPA-2060 Project: OpenJPA Issue Type: Bug Components: criteria Affects Versions: 2.2.0 Reporter: Albert Lee When an entity with List[] attribute feeds to Annotation processor, it failed with the following exception: > javac -Aopenjpa.metamodel=true -proc:only -Aopenjpa.log=TRACE -cp openjpa.trunk\openjpa-all\target\openjpa-all-2.2.0-SNAPSHOT.jar EntityLob.java Note: Starting OpenJPA Annotation Processor for Metamodel Generation Note: Generating canonical metamodel source code "file:/c:/temp/ap/suite/r80/base/common/datamodel/entities/EntityLob_.java" error: Error while generating metamodel for "suite.r80.base.common.datamodel.entities.EntityLob". See exception stack trace for details. java.lang.IllegalArgumentException: localized message key: src-invalid-type; substitutions: [java.util.List] at org.apache.openjpa.persistence.util.SourceCode$ClassName.(SourceCode.java:782) at org.apache.openjpa.persistence.util.SourceCode.getOrCreateImport(SourceCode.java:135) at org.apache.openjpa.persistence.util.SourceCode$Element.addParameter(SourceCode.java:301) at org.apache.openjpa.persistence.meta.AnnotationProcessor6.process(AnnotationProcessor6.java:258) at org.apache.openjpa.persistence.meta.AnnotationProcessor6.process(AnnotationProcessor6.java:210) at com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:637) at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:566) at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:711) at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:993) at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:739) at com.sun.tools.javac.main.Main.compile(Main.java:365) at com.sun.tools.javac.main.Main.compile(Main.java:291) at com.sun.tools.javac.main.Main.compile(Main.java:282) at com.sun.tools.javac.Main.compile(Main.java:81) at com.sun.tools.javac.Main.main(Main.java:66) warning: Unclosed files for the types '[suite.r80.base.common.datamodel.entities.EntityLob_]'; these types will not undergo annotation proce ssing 1 error 1 warning Sample entity used to recreate the problem: @Entity public class EntityLob { .... private List[] entityLob_lob08; public EntityLob() { } public List[] getEntityLob_lob08() { return entityLob_lob08; } public void setEntityLob_lob08(List[] l) { this.entityLob_lob08 = l; } } -- 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