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

Java Access Bridge - Remove Class.forName usage

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 7u6, 8, 9
    • Fix Version/s: tbd
    • Component/s: client-libs
    • Labels:

      Description

      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;
        
        

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: