openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Albert Lee (JIRA)" <>
Subject [jira] [Commented] (OPENJPA-2300) AnnotationProcessor shows warnings when executed on Java 7 sources
Date Fri, 21 Jun 2013 19:21:20 GMT


Albert Lee commented on OPENJPA-2300:

The changes in AnnotationProcess6 was removing the @SupportSourceVersion(RELEASE_6).  When
run with JDK7, the reported warning is removed. However, when run with JDK with the annotation
removed, one will get the following warning message:

"warning: No SupportedSourceVersion annotation found on org.apache.openjpa.persistence.meta.AnnotationProcessor6"

So one way or the other, a warning will be posted.

Since the current openjpa is built with JDK 6, it mean sense to leave the @SupportSourceVersion(6)
in place such that the "No SupportedSourceVersion..." should not be observed, while with JDK
7, the warning is appropriate.

When OpenJPA moves up to build with JDK7, that should be the time to upgrade AnnotationProcessor*
to support @SupportSourceVersion(7).

I propose to revert the change back to whatever it was before and resolve this issue when
OpenJPA moves up to JDK 7 build.

> AnnotationProcessor shows warnings when executed on Java 7 sources
> ------------------------------------------------------------------
>                 Key: OPENJPA-2300
>                 URL:
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: criteria, Enhance
>    Affects Versions: 2.2.1
>         Environment: OpenJPA 2.2.1
>            Reporter: Piotr Kubowicz
>            Assignee: Pinaki Poddar
>            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 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:

View raw message