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

Native methods should be moved from Swing to AWT

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 5.0
    • 5.0
    • client-libs
    • tiger
    • x86
    • windows_xp



      Name: ssR10077 Date: 03/24/2003

      ###@###.###
      Methods of com.sun.java.swing.plaf.windows.XPStyle
          private static native int[] getBitmapResource(String path, String
      resource);
          private static native String getTextResourceByName(String path, String
      resource, String resType);
          private static native String getTextResourceByInt(String path, int
      resource, String resType);
      should be moved from Swing to AWT.

      Presence of native methods in Swing breaks assumption of pure java nature of
      Swing an confuses developers. It makes harder to divide responsibilities for
      native bugs. AWT already has proprietary API such as SellFolder and
      XSETTINGS used solely by Swing.

      ======================================================================

            ssisunw Ssi Ssi (Inactive)
            ssisunw Ssi Ssi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: