[hibernate-issues] [Hibernate-JIRA] Commented: (HV-531) hibernate-validator-annotation-processor tests fails when running against JDK7

Hardy Ferentschik (JIRA) noreply at atlassian.com
Fri Nov 25 05:13:22 EST 2011


    [ http://opensource.atlassian.com/projects/hibernate/browse/HV-531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44423#comment-44423 ] 

Hardy Ferentschik commented on HV-531:
--------------------------------------

Thanks for looking into this :-)

{quote}
One solution might be to define the following method in the AP and remove the annotation.

{code}
@Override
public SourceVersion getSupportedSourceVersion() {
    return SourceVersion.latestSupported();
}
{code}
{quote}

That seems to be the nicest solution. Using this approach the full build works under JDK 6 and 7. I am just trying to understand the implications as well. We really want to build the release then using JDK 7. Source compatibility should then still be to Java 5, but the annotation processor would also work in a Java 7 environment.
Are there any drawbacks with this approach?  





> hibernate-validator-annotation-processor tests fails when running against JDK7
> ------------------------------------------------------------------------------
>
>                 Key: HV-531
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-531
>             Project: Hibernate Validator
>          Issue Type: Bug
>          Components: annotation-processor, tests
>    Affects Versions: 4.2.0.Final
>            Reporter: Hardy Ferentschik
>             Fix For: 4.3.0.next
>
>


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list