[ 
https://issues.apache.org/jira/browse/BVAL-181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17157375#comment-17157375
 ] 

Romain Manni-Bucau commented on BVAL-181:
-----------------------------------------

What about documenting how to use it in a custom guice module? There is not 
much code needed.

> bval-guice 0.5 does not work with Java 11
> -----------------------------------------
>
>                 Key: BVAL-181
>                 URL: https://issues.apache.org/jira/browse/BVAL-181
>             Project: BVal
>          Issue Type: Bug
>            Reporter: John Doe
>            Priority: Major
>
> bval-guice 0.5 (latest version) does not work with Java 11. It still works 
> with Java 8.
> Simple example code that causes failure with stacktrace
> {code:java}
> ValidationModule module = new org.apache.bval.guice.ValidationModule();
> com.google.inject.Guice.createInjector(module);
> {code}
> Problem seems to be that validation package is using old version of bundle 
> library, which is not compatible with Java 11. 
> But if I update the org.apache.bval.bundle from 0.5 to 2.0.3 version using 
> maven dependencies, new error appears
> {code:java}
> java.lang.NoClassDefFoundError: 
> org/apache/bval/jsr303/DefaultMessageInterpolator
> {code}
> What needs to be done:
> - New version of bval-guice using latest bundle library should be created (to 
> fix problems within the bundle lib) and problems like the 
> NoClassDefFoundError error above should be fixed.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to