Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maven build failed on Java 9 #1283

Closed
ralf0131 opened this issue Jan 26, 2018 · 1 comment · Fixed by #1345
Closed

Maven build failed on Java 9 #1283

ralf0131 opened this issue Jan 26, 2018 · 1 comment · Fixed by #1345
Milestone

Comments

@ralf0131
Copy link
Contributor

Trying to build Dubbo on Java 9, I got build failure with the following stack trace:

Caused by: java.lang.StringIndexOutOfBoundsException: begin 0, end 3, length 1
        at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3116)
        at java.base/java.lang.String.substring(String.java:1885)
        at org.apache.commons.lang.SystemUtils.getJavaVersionAsFloat(SystemUtils.java:1133)
        at org.apache.commons.lang.SystemUtils.<clinit>(SystemUtils.java:818)
        ... 59 more

Looks like commons-lang does not understand the version semantics of Java 9.

@ralf0131
Copy link
Contributor Author

It is the maven-javadoc-plugin's bad, which contains lower version of commons-lang dependency that is not compatible with Java 9. Updating version to 3.0.0 will solve this issue. I will send out PR later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants