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

RFE: Deprecated inheritance method resolution

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.3.0
    • tools
    • generic
    • generic



      Name: boT120536 Date: 05/20/2001


      If I create a class that implements an interface, and that interface has a
      method that is marked as deprecated, Then my class will issue a warning on
      compilation. This is as it is expected.

      However, I'd like to suppress this, because I promise that my class won't use
      this message. Perhaps If I define my method like this (assuming foo() is a
      deprecated method)

      public void foo() throws DeprecatedException
      {
         throw new DeprecatedException();
      }

      Then perhaps the compiler could be updated to NOT issue the warning.
      (Review ID: 124247)
      ======================================================================

            Unassigned Unassigned
            bonealsunw Bret O'neal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: