Skip to content

Commit

Permalink
8296923: JFR: jfr --version should return System.getProperty("java ve…
Browse files Browse the repository at this point in the history
…rsion")

Reviewed-by: mgronlun
  • Loading branch information
egahlin committed Nov 15, 2022
1 parent 93d6b1f commit 873eccd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jdk.jfr/share/classes/jdk/jfr/internal/tool/Version.java
@@ -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
Expand Down Expand Up @@ -41,7 +41,7 @@ public String getDescription() {

@Override
public void execute(Deque<String> options) {
System.out.println("1.0");
System.out.println(System.getProperty("java.version"));
}

@Override
Expand Down

1 comment on commit 873eccd

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.