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

-version produces "javac (version info not available)" #3381

Closed
cpovirk opened this issue Jun 15, 2020 · 2 comments · Fixed by #3464
Closed

-version produces "javac (version info not available)" #3381

cpovirk opened this issue Jun 15, 2020 · 2 comments · Fixed by #3464
Milestone

Comments

@cpovirk
Copy link
Contributor

cpovirk commented Jun 15, 2020

Since the default issue template suggests including the output of -version, I've noticed that, for a while now, the output of that has been:

javac (version info not available)

If I go all the way back to Checker Framework 2.10.0, I see:

javac 1.8.0-jsr308-2.4.0

But every version I had handy for testing from 2.11.0 onward has "version info not available."

(I wonder if ideally the version output would include the version of the Checker Framework itself?)

@wmdietl
Copy link
Member

wmdietl commented Jun 15, 2020

I had recently noticed something similarly.
Up to 2.11.0 we used our own jsr308-langtools compiler, in which we had added the Checker Framework version numbers.
We now use either the error-prone javac (if run on a Java 8 JVM) or the host javac (for a Java >=9 JVM).

For example, I get:

./checker/bin/javac -version
javac 11.0.7

because that's the host compiler version I seem to be using.

I don't think we can easily intercept how javac outputs the version number.
How about adding an -Aversion flag that we can use to output the Checker Framework version?

@wmdietl wmdietl added this to the High milestone Jun 15, 2020
@wmdietl
Copy link
Member

wmdietl commented Jun 15, 2020

Implementation tasks:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants