Skip to content

Commit 873eccd

Browse files
committedNov 15, 2022
8296923: JFR: jfr --version should return System.getProperty("java version")
Reviewed-by: mgronlun
1 parent 93d6b1f commit 873eccd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/jdk.jfr/share/classes/jdk/jfr/internal/tool/Version.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -41,7 +41,7 @@ public String getDescription() {
4141

4242
@Override
4343
public void execute(Deque<String> options) {
44-
System.out.println("1.0");
44+
System.out.println(System.getProperty("java.version"));
4545
}
4646

4747
@Override

1 commit comments

Comments
 (1)

openjdk-notifier[bot] commented on Nov 15, 2022

@openjdk-notifier[bot]
Please sign in to comment.