You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bval.apache.org by "John Doe (Jira)" <ji...@apache.org> on 2020/05/20 06:12:00 UTC

[jira] [Created] (BVAL-181) bval-guice 0.5 does not work with Java 11

John Doe created BVAL-181:
-----------------------------

             Summary: 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


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)