Skip to content

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

Description

@SvenJunge

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions