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

FormView class fails to handle HTML Input attribute with type in upper case

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P5 P5
    • None
    • 6u10
    • client-libs

      FULL PRODUCT VERSION :
      java version "1.6.0_10"
      Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
      Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)


      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :

      The createInputComponent method checks the type of html input to create diiferent types of input e.g. text, radio, check box.

      However this check is case sensitive.

        From code
      =======
      if (type.equals("text")) {
      ..
      }
      ===
      When the html input tag contains type in upper case
      e.g. <INPUT TYPE="TEXT" maxlength="3" size="3" value="099" >
      this API returns null since the check is case sensitive.

      http://java.sun.com/javase/6/docs/api/javax/swing/text/html/FormView.html

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -

      createInputComponent should do case insensitive check of type.
      ACTUAL -

      createInputComponent does case sensitive check.

      REPRODUCIBILITY :
      This bug can be reproduced always.

            peterz Peter Zhelezniakov
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: