Details

    • Type: Sub-task Sub-task
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 7.0.1
    • Fix Version/s: 7.0.3
    • Component/s: examples
    • Labels:
      None

      Description

      NB provides a hint when it would be useful to wrap code in a try-with-resources block. GreetingServlet.java (in hello2) should implement this fix for the PrintWriter that it uses. Other older examples may need such fixes too.

        Activity

        Hide
        jendrock added a comment -

        Fixed GreetingServlet.java (in web/servlet/hello2), and MoodServlet.java (in web/servlet/mood).

        Show
        jendrock added a comment - Fixed GreetingServlet.java (in web/servlet/hello2), and MoodServlet.java (in web/servlet/mood).
        Show
        Ian Evans added a comment - See the following tech note: http://docs.oracle.com/javase/7/docs/technotes/guides/language/try-with-resources.html
        Hide
        rcervera added a comment -

        Fixed in the connector examples.

        Show
        rcervera added a comment - Fixed in the connector examples.
        Hide
        Ian Evans added a comment -

        I think we've updated the example tree with these language features.

        Show
        Ian Evans added a comment - I think we've updated the example tree with these language features.

          People

          • Assignee:
            Unassigned
            Reporter:
            Kim Haase
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: