• Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • Sprint 215 AMM, Sprint 217 AMM

      The java.awt.peer package is inaccessible with the new module system and calls that return instances of its classes (java.awt.Component.getPeer(), java.awt.Font.getPeer()) have been removed. These peers have been deprecated since Java 1.1 [0] [1] and code should instead use the methods provided by the main AWT classes rather than directly interacting with implementation-specific peers that can vary between platforms.

      When
      a Java class uses java.awt.Component.getPeer() or java.awt.Font.getPeer() or a class from the java.awt.peer package

      Perform
      add a hint to replace this with use of the java.awt packages e.g. java.awt.Component.isDisplayable(), java.awt.Component.isLightweight()

      [0] https://docs.oracle.com/javase/8/docs/api/java/awt/Component.html#getPeer--
      [1] https://docs.oracle.com/javase/8/docs/api/java/awt/Font.html#getPeer--

            rhn-support-kpunwatk Karishma Punwatkar
            rhn-engineering-ahughes Andrew Hughes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: