You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Piotr Kubowicz (JIRA)" <ji...@apache.org> on 2012/11/26 10:04:58 UTC

[jira] [Created] (OPENJPA-2300) Enhancer shows warnings when executed on Java 7 sources

Piotr Kubowicz created OPENJPA-2300:
---------------------------------------

             Summary: Enhancer shows warnings when executed on Java 7 sources
                 Key: OPENJPA-2300
                 URL: https://issues.apache.org/jira/browse/OPENJPA-2300
             Project: OpenJPA
          Issue Type: Bug
          Components: Enhance
    Affects Versions: 2.2.1
         Environment: OpenJPA 2.2.1
            Reporter: Piotr Kubowicz
            Priority: Minor


When running {{openjpac}} Ant task on Java sources set to Java 7 compatibility, the following warning is shown:

    [javac] warning: Supported source version 'RELEASE_6' from annotation processor 'org.apache.openjpa.persistence.meta.AnnotationProcessor6' less than -source '1.7'

This is because AnnotationProcessor6.java contains:

@SupportedSourceVersion(RELEASE_6)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (OPENJPA-2300) Enhancer shows warnings when executed on Java 7 sources

Posted by "Piotr Kubowicz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-2300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Piotr Kubowicz updated OPENJPA-2300:
------------------------------------

    Description: 
When running {{openjpac}} Ant task on Java sources set to Java 7 compatibility, the following warning is shown:

    [javac] warning: Supported source version 'RELEASE_6' from annotation processor 'org.apache.openjpa.persistence.meta.AnnotationProcessor6' less than -source '1.7'

This is because AnnotationProcessor6.java contains:

@SupportedSourceVersion(RELEASE_6)

which according to JDK documentation means that this annotation processor is incompatible with Java 7.

  was:
When running {{openjpac}} Ant task on Java sources set to Java 7 compatibility, the following warning is shown:

    [javac] warning: Supported source version 'RELEASE_6' from annotation processor 'org.apache.openjpa.persistence.meta.AnnotationProcessor6' less than -source '1.7'

This is because AnnotationProcessor6.java contains:

@SupportedSourceVersion(RELEASE_6)

    
> Enhancer shows warnings when executed on Java 7 sources
> -------------------------------------------------------
>
>                 Key: OPENJPA-2300
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2300
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: Enhance
>    Affects Versions: 2.2.1
>         Environment: OpenJPA 2.2.1
>            Reporter: Piotr Kubowicz
>            Priority: Minor
>              Labels: java7
>
> When running {{openjpac}} Ant task on Java sources set to Java 7 compatibility, the following warning is shown:
>     [javac] warning: Supported source version 'RELEASE_6' from annotation processor 'org.apache.openjpa.persistence.meta.AnnotationProcessor6' less than -source '1.7'
> This is because AnnotationProcessor6.java contains:
> @SupportedSourceVersion(RELEASE_6)
> which according to JDK documentation means that this annotation processor is incompatible with Java 7.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENJPA-2300) AnnotationProcessor shows warnings when executed on Java 7 sources

Posted by "Pinaki Poddar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-2300?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13504359#comment-13504359 ] 

Pinaki Poddar commented on OPENJPA-2300:
----------------------------------------

Does the annotation processor generate the meta classes in JDK7 or just fail after the warning? 
I am still at JDK 6, may be time to upgrade.
                
> AnnotationProcessor shows warnings when executed on Java 7 sources
> ------------------------------------------------------------------
>
>                 Key: OPENJPA-2300
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2300
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: criteria, Enhance
>    Affects Versions: 2.2.1
>         Environment: OpenJPA 2.2.1
>            Reporter: Piotr Kubowicz
>            Priority: Minor
>              Labels: java7
>
> When running {{openjpac}} Ant task on Java sources set to Java 7 compatibility, the following warning is shown:
>     [javac] warning: Supported source version 'RELEASE_6' from annotation processor 'org.apache.openjpa.persistence.meta.AnnotationProcessor6' less than -source '1.7'
> This is because AnnotationProcessor6.java contains:
> @SupportedSourceVersion(RELEASE_6)
> which according to JDK documentation means that this annotation processor is incompatible with Java 7.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (OPENJPA-2300) AnnotationProcessor shows warnings when executed on Java 7 sources

Posted by "Kevin Sutter (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-2300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Sutter updated OPENJPA-2300:
----------------------------------

    Component/s: criteria
        Summary: AnnotationProcessor shows warnings when executed on Java 7 sources  (was: Enhancer shows warnings when executed on Java 7 sources)

Just clarifying the Summary title to indicate that this issue is related to the AnnotationProcessing that kicks in when generating the MetaModel Entity classes.  These generated java source files are used to support the MetaModel and Criteria APIs, and are not related to the byte-code enhancement processing on the Entity classes.
                
> AnnotationProcessor shows warnings when executed on Java 7 sources
> ------------------------------------------------------------------
>
>                 Key: OPENJPA-2300
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2300
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: criteria, Enhance
>    Affects Versions: 2.2.1
>         Environment: OpenJPA 2.2.1
>            Reporter: Piotr Kubowicz
>            Priority: Minor
>              Labels: java7
>
> When running {{openjpac}} Ant task on Java sources set to Java 7 compatibility, the following warning is shown:
>     [javac] warning: Supported source version 'RELEASE_6' from annotation processor 'org.apache.openjpa.persistence.meta.AnnotationProcessor6' less than -source '1.7'
> This is because AnnotationProcessor6.java contains:
> @SupportedSourceVersion(RELEASE_6)
> which according to JDK documentation means that this annotation processor is incompatible with Java 7.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (OPENJPA-2300) Enhancer shows warnings when executed on Java 7 sources

Posted by "Piotr Kubowicz (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENJPA-2300?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13503681#comment-13503681 ] 

Piotr Kubowicz commented on OPENJPA-2300:
-----------------------------------------

Unless you know of any compatibility problems with OpenJPA 2.2.1 running on Java 7 (I haven't met any so far), please simply change this to RELEASE_7.
                
> Enhancer shows warnings when executed on Java 7 sources
> -------------------------------------------------------
>
>                 Key: OPENJPA-2300
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2300
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: Enhance
>    Affects Versions: 2.2.1
>         Environment: OpenJPA 2.2.1
>            Reporter: Piotr Kubowicz
>            Priority: Minor
>              Labels: java7
>
> When running {{openjpac}} Ant task on Java sources set to Java 7 compatibility, the following warning is shown:
>     [javac] warning: Supported source version 'RELEASE_6' from annotation processor 'org.apache.openjpa.persistence.meta.AnnotationProcessor6' less than -source '1.7'
> This is because AnnotationProcessor6.java contains:
> @SupportedSourceVersion(RELEASE_6)
> which according to JDK documentation means that this annotation processor is incompatible with Java 7.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira