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

REGRESSION: JCK1.5-runtime api/java_awt/interactive/ListTests.html#ListTests

    Details

    • Subcomponent:
    • Resolved In Build:
      tiger
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description



      Name: iaR10016 Date: 08/20/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b15
                        (not reproducible with JDK1.4.2-b28, JDK1.5.0-b12)
      JCK : JCK1.5-runtime (b02)
      Platform[s] : all
      switch/Mode : default
      JCK test owner : http://javaweb.eng/jck/usr/owners.jto
      Falling tests : api/java_awt/interactive/ListTests.html#ListTests[ListTest0001]

      The test verifies java.awt.List.setMultipleMode(boolean) method behavior.

      Java TM 2 Platform Std.Ed.v1.5.0 Specification reads about setMultipleMode method:
      ...
      Sets the flag that determines whether this list allows multiple selections. When the
      selection mode is changed from multiple-selection to single-selection, the selected
      items change as follows: If a selected item has the location cursor, only that item
      will remain selected. If no selected item has the location cursor, all items will be
      deselected.
      ...

      Please, run the script from "How to reproduce" section and do the following steps to
      reproduce the failure:

      1. Select "setMultipleMode" switch
      2. Select all four visible list items. All the items are selected and highlighted now,
          one of them (last selected) has the location cursor.
      3. Disable multiple mode for the List component (de-select "setMultipleMode" switch).

      It is expected that one of the List items remains selected and highlighted.
      But really it does not happen:

      - on Linux all the items remains highlighted (not reproducible with JDK1.4.2-b28);
      - on Solaris sparc, Solaris x86 and Windows systems all the List items becomes not
         highlighted (reproducible with JDK1.4.2-b28, but this behavior is OK in accordance
         with JDK1.4.2 Specification)

      Test source location:
      =====================
      /java/re/jck/1.5/promoted/latest/binaries/JCK-runtime-5/tests/api/java_awt/interactive/ListTests.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b15/jck15/linux/suse8.0_gnome_server_linux-2/workDir/api-interactive/java_awt/interactive/ListTests_ListTests.jtr

      How to reproduce:
      =================
      Run the following script (you may need to change it's JDK and JCK variables):
      --- script start ---
      #!/bin/bash
      JCK="/java/re/jck/1.5/promoted/latest/binaries/JCK-runtime-15"
      JDK="/java/re/jdk/1.5.0/promoted/latest/binaries/linux"
      #JCK="/net/linux-15/export/home/java/jck1.5/JCK-runtime-15"
      #JDK="/net/linux-15/export/home/java/jdk1.5.0/linux"
      export CLASSPATH="$JCK/classes:$JCK/lib/javatest.jar"
      $JDK/bin/java javasoft.sqe.tests.api.java.awt.interactive.ListTests -TestCaseID ListTest0001
      --- script end ---

      Specific machine info:
      ======================
      Hostname: linux-2
      OS: Suse Linux 8.2 (GNOME2)

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

        Attachments

          Activity

            People

            • Assignee:
              dav Andrei Dmitriev (Inactive)
              Reporter:
              irasunw Ira Ira (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: