deniskuzZ commented on code in PR #5809: URL: https://github.com/apache/hive/pull/5809#discussion_r2081973640
########## hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/tool/TempletonControllerJob.java: ########## @@ -167,6 +167,39 @@ public int run(String[] args) throws IOException, InterruptedException, ClassNot } return 0; } + private String addJavaOpensPackages(String amJavaOpts) { + final int JAVA_SPEC_VER = + Math.max(8, Integer.parseInt(System.getProperty("java.specification.version").split("\\.")[0])); + if (JAVA_SPEC_VER >= 9) { + return String.join(" ", amJavaOpts, getJavaAddOpenOptions()); + } else { + return amJavaOpts; + } + } + private String getJavaAddOpenOptions() { Review Comment: could this be moved to common to avoid copy&paste? -- 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: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org