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

Deprecated code sample in java.lang.ClassCastException

    XMLWordPrintable

Details

    • b06
    • generic
    • generic
    • Verified

    Description

      A DESCRIPTION OF THE PROBLEM :
      A code sample in src/java.base/share/classes/java/lang/ClassCastException.java
      uses the deprecated Integer constructor and should be replaced with Integer.valueOf(int)

      @deprecated(since="9")
      public Integer​(int value)

      https://github.com/openjdk/jdk/pull/9359

      Attachments

        Issue Links

          Activity

            People

              aturbanov Andrey Turbanov
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: