Salesforcedx-vscode: Java Version Detection doesn't work on all version strings

Created on 24 May 2019  路  2Comments  路  Source: forcedotcom/salesforcedx-vscode

Looking here
https://github.com/forcedotcom/salesforcedx-vscode/blob/master/packages/salesforcedx-vscode-apex/src/requirements.ts
line 86

javaHome + '/bin/java', ['-version'], {},

      (error, stdout, stderr) => {

        if (

          stderr.indexOf('build 1.8') < 0 &&

          stderr.indexOf('build 11.') < 0

        ) {

          reject(nls.localize('wrong_java_version_text', SET_JAVA_DOC_LINK));

        } else {

          resolve(true);

        }

      }

I'm using openJDK and it looks like my output is different

openJDK

_Originally posted by @Londoner1234 in https://github.com/forcedotcom/salesforcedx-vscode/issues/930#issuecomment-495531429_

quality bug

Most helpful comment

Please, consider adding 12 already since it's GA

All 2 comments

Please, consider adding 12 already since it's GA

when this bug will be resolved for OpenJDK 11?

Was this page helpful?
0 / 5 - 0 ratings