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

Try-with-Resources was not added with Java_9 #174

Open
SvenJunge opened this issue Apr 3, 2022 · 0 comments
Open

Try-with-Resources was not added with Java_9 #174

SvenJunge opened this issue Apr 3, 2022 · 0 comments

Comments

@SvenJunge
Copy link

SvenJunge commented Apr 3, 2022

In the article it says T-W-R was added with Java_9. Thats wrong, it was added with Java_7.
So this file https://github.com/thombergs/code-examples/blob/1f37a81b90003c35beed6216432f689936917cb1/core-java/versions/src/main/java/com/reflectoring/io/java9/TryWithResources.java should be deleted (or al least be moved to s.th. like 'other stuff').

Java_7 release-notes:
https://www.oracle.com/java/technologies/javase/jdk7-relnotes.html
Info/ read:
https://www.baeldung.com/java-try-with-resources

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

No branches or pull requests

1 participant