[ 
https://issues.apache.org/jira/browse/CB-11925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shazron Abdullah updated CB-11925:
----------------------------------
    Component/s: Android

> OpenJDK 9 version string not detected by regex in check_java
> ------------------------------------------------------------
>
>                 Key: CB-11925
>                 URL: https://issues.apache.org/jira/browse/CB-11925
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>            Reporter: Robbie Cahill
>
> Running OpenJDK 9 on Ubuntu, javac -version returns
> {code}
> javac 9-internal
> {code}
> Down the bottom of check_java in check_reqs.js you have the following 
> (comments added to illustrate the problem):
> {code}
>         }).then(function (output) {
>             console.log(output); //outputs javac 9-internal
>             console.log(/javac ((?:\d+\.)+(?:\d+))/i.exec(output)); //outputs 
> null
>             var match = /javac ((?:\d+\.)+(?:\d+))/i.exec(output)[1]; 
> //Error: Cannot read property '1' of null
>             return match && match[1];
>         });
> {code}
> It looks like the regex fails to match the string, which breaks cordova build 
> / run. In any case, perhaps a nice error message when a version string is 
> unknown or unsupported would be better than the unknown property error?
> This is using the latest cordova 6.3.1



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to