Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8242804

Fix trivial deprecation issues in jdk.hotspot.agent

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 15
    • 15
    • hotspot
    • None
    • b20

      In the quest for getting rid of warning messages in jdk.hotspot.agent, the time has now come for another major source of deprectation messages, that are trivial to fix and might hide more tricky issues.

      This patch handles the "new Integer(42)" pattern of explicit boxing, which is deprecated. I have fixed this using the improved autoboxing functionality in modern Java (e.g. just "42"), wherever possible (which was most places). For some cases, a modern factory method was preferable.

      This patch also fixes newInstance() deprecation.

            ihse Magnus Ihse Bursie
            ihse Magnus Ihse Bursie
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: