You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@orc.apache.org by GitBox <gi...@apache.org> on 2021/09/16 06:59:23 UTC

[GitHub] [orc] guiyanakuang commented on pull request #910: [DRAFT] Attempting to fix the maven enforcer issue in main branch

guiyanakuang commented on pull request #910:
URL: https://github.com/apache/orc/pull/910#issuecomment-920630496


   I think the JDK17 General-Availability Release was released two days ago. Github workflow updated JDK17. Now System.getProperty("java.version") returns "17" which causes a lot of program exceptions.
   
   ```
   Apache Maven 3.8.2 (ea98e05a04480131370aa0c110b8c54cf726c06f)
   Maven home: /usr/share/apache-maven-3.8.2
   Java version: 17, vendor: Azul Systems, Inc., runtime: /opt/hostedtoolcache/jdk/17.0.0/x64
   ```
   
   For example org.apache.hadoop.util.Shell.java
   ```
   private static boolean IS_JAVA7_OR_ABOVE =
         System.getProperty("java.version").substring(0, 3).compareTo("1.7") >= 0;
   ```
   java.lang.StringIndexOutOfBoundsException: String index out of range: 3


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@orc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org