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

Kevin Pollet (JIRA) noreply at atlassian.com
Thu Nov 24 17:47:19 EST 2011


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

Kevin Pollet commented on HV-531:
---------------------------------

Another option is to set the source version flag (-source 1.6) when the source file is compiled in the {{CompilerTestHelper#compile()}} method. By doing that a warning is generated[1] and has to be disabled (-Xlint:-options) to have the AP tests working on JDK7.

One drawback is that the AP cannot be used with Java 7 source files.

[1] http://blogs.oracle.com/darcy/entry/bootclasspath_older_source

> 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