Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"mn --version" prints incorrect JVM version (1.8.0_252 instead of 11.0.6) #293

Closed
2 tasks done
wololock opened this issue Jun 29, 2020 · 2 comments · Fixed by #295
Closed
2 tasks done

"mn --version" prints incorrect JVM version (1.8.0_252 instead of 11.0.6) #293

wololock opened this issue Jun 29, 2020 · 2 comments · Fixed by #295
Labels
type: improvement A minor improvement to an existing feature

Comments

@wololock
Copy link
Contributor

Task List

  • Steps to reproduce provided
  • Full description of the issue provided (see below)

Steps to Reproduce

$ java -version 
openjdk version "11.0.6" 2020-01-14
OpenJDK Runtime Environment 18.9 (build 11.0.6+10)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.6+10, mixed mode)

$ sdk use micronaut 2.0.0

Using micronaut version 2.0.0 in this shell.

$ mn --version
Micronaut Version: 2.0.0
JVM Version: 1.8.0_252

$ sdk use micronaut 1.3.6

Using micronaut version 1.3.6 in this shell.

$ mn --version
| Micronaut Version: 1.3.6
| JVM Version: 11.0.6

asciicast

Expected Behaviour

mn --version should print JVM Version: 11.0.6.

Actual Behaviour

mn --version prints JVM version: 1.8.0_252

Environment Information

  • Operating System: Fedora Linux 32 (kernel 5.6.19-300.fc32.x86_64)
  • Micronaut Version: 2.0.0
  • JDK Version: OpenJDK 11.0.6 (build 11.0.6+10)
@graemerocher
Copy link
Contributor

The Micronaut CLI is built using the Java 8 version of native image into a native executable hence the message as it is not running in a JVM.

I do think we should just remove the JVM version as it is confusing.

@graemerocher graemerocher transferred this issue from micronaut-projects/micronaut-core Jun 29, 2020
@graemerocher graemerocher added the type: improvement A minor improvement to an existing feature label Jun 29, 2020
@wololock
Copy link
Contributor Author

Yeah, that makes sense. Right now it's just inconsistent compared to the 1.3.x branch. Created #295

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: improvement A minor improvement to an existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants