• 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--

        1. rule-id00060.png
          99 kB
          Karishma Punwatkar
        2. Screenshot from 2022-04-08 12-59-31.png
          193 kB
          Karishma Punwatkar
        3. Screenshot from 2022-04-08 14-09-20.png
          227 kB
          Karishma Punwatkar
        4. Screenshot from 2022-04-08 14-10-20.png
          98 kB
          Karishma Punwatkar

              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: