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

Deprecated code sample in java.lang.ClassCastException

XMLWordPrintable

    • b06
    • generic
    • generic
    • Verified

      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

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

              Created:
              Updated:
              Resolved: