8296923: JFR: jfr --version should return System.getProperty("java version")

Reviewed-by: mgronlun
This commit is contained in:
Erik Gahlin 2022-11-15 01:17:02 +00:00
parent 93d6b1f3e8
commit 873eccde01

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -41,7 +41,7 @@ final class Version extends Command {
@Override
public void execute(Deque<String> options) {
System.out.println("1.0");
System.out.println(System.getProperty("java.version"));
}
@Override