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

Update Java Style Guide for Java 17 #613

Open
DJViking opened this issue Jan 20, 2021 · 3 comments
Open

Update Java Style Guide for Java 17 #613

DJViking opened this issue Jan 20, 2021 · 3 comments
Labels
lang:java The Java language

Comments

@DJViking
Copy link

The next Java LTS, Java 17 is coming later this year.

There is no information on which version of Java the Google Java Style Guide adheres to.
It doesn't look like it has been updated to incorporate the new language features that has been added to newer Java.

There is nothing about Java modules mentioned in the style guide.
There is nothing about the new language features, like var, Switch Expressions, Records, Text Blocks, Sealed Classes, Hidden Classes, Pattern matching instanceof.
Though some of these new features are still in First or Second Preview as of Java 16 coming in March 2021.

@elharo
Copy link
Contributor

elharo commented Aug 26, 2021

This is not going to happen until Google starts using Java 17 or later itself, which is unlikely anytime soon. I think we're now on a mix of Java 8 and Java 11, and even occasionally Java 7, depending on the project.

@benjaminp
Copy link

Even some Java 11 features like var are not mentioned, though.

@oliviercailloux
Copy link

It would be good then to let the reader know that the guide applies only to the pre-17 (or pre-11?) constructs.

@vapier vapier added the lang:java The Java language label Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang:java The Java language
Projects
None yet
Development

No branches or pull requests

5 participants