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

Java Access Bridge - Remove Class.forName usage

XMLWordPrintable

      Remove Class.forName usage when possible. The following changes can be made:
      - AccessBridge.java line 158, replace this
        Class<?> clAccessibleRole = Class.forName("javax.accessibility.AccessibleRole);
        with this
        Class<javax.accessibility.AccessibleRole> clAccessibleRole = javax.accessibility.AccessibleRole.class
        Note: Might not need the javax.accessibility prefix but it might be helpful documentation.
      - AccessBridge.java line 273, replace this
        componentParemter[0] = Class.forName("java.awt.Component");
        with this
        componentParemter[0] = java.awt.Component.class;
        
        

            Unassigned Unassigned
            ptbrunet Pete Brunet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: