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

Broken AWT Properties for German Locale

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.0
    • globalization

       java version "1.4.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b60)
      Java HotSpot(TM) Client VM (build 1.4.0-beta-b60, mixed mode)

      Bug Description:

      Can't open Windows with a German locale installed.
      Instantiating a JWindow throws an exception.

      File sun/awt/resources/awt_de.properties in rt.jar contains the following
      two lines:
         AWT.backwardDefaultFocusTraversalKey=Umsch Tab,Strg Umsch Tab
         AWT.forwardDefaultFocusTraversalKey=Tab,Strg Tab

      java.awt.KeyboardFocusManager.loadFocusTraversalKeys(String, String, Set)
      uses these list values to request java.awt.AWTKeyStroke instances
      for each token, using java.awt.AWTKeyStroke.getAWTKeyStroke(String).

      "Umsch Tab", "Strg Umsch Tab", etc. do not comply with the syntax required
      in #getAWTKeyStroke(String). The method expects modifies like
      shift | control | ctrl | meta | alt | button1 | button2 | button3

      Removing the two lines in the awt_de.properties works around the problem.

            khongsunw Karl Hong (Inactive)
            mzaudousunw Menasse Zaudou (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: