Skip to content

Commit 077f97f

Browse files
author
Geoffrey Broadwell
committed
Allow NQP's ConfigureJVM.pl to recognize a JVM that refers to itself as 'jdk' instead of 'java'
1 parent a764846 commit 077f97f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ConfigureJVM.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
my $jvm_found = 0;
5151
my $jvm_ok = 0;
5252
for (@jvm_info) {
53-
if (/java version "(\d+)\.(\d+)/) {
53+
if (/(?:java|jdk) version "(\d+)\.(\d+)/) {
5454
$jvm_found = 1;
5555
if ($1 > 1 || $1 == 1 && $2 >= 7) {
5656
$jvm_ok = 1;

0 commit comments

Comments
 (0)