openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jieryn (JIRA)" <>
Subject [jira] [Created] (OPENJPA-2187) metamodel generation with default package creates invalid class
Date Wed, 09 May 2012 12:57:52 GMT
jieryn created OPENJPA-2187:

             Summary: metamodel generation with default package creates invalid class
                 Key: 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;

public final class BuggyMetamodel
  private final String                                      string = "OpenJPA Rocks!";


 *  Generated by OpenJPA MetaModel Generator Tool.

package ;

import javax.persistence.metamodel.SingularAttribute;

(value="org.apache.openjpa.persistence.meta.AnnotationProcessor6",date="Wed May 09 08:49:27
EDT 2012")
public class BuggyMetamodel_ {
    public static volatile SingularAttribute<BuggyMetamodel,String> string;

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:!default.jspa
For more information on JIRA, see:


View raw message