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

TESTBUG: Testcase 4306756 is failing for all jdks

    XMLWordPrintable

Details

    • b02
    • x86
    • windows

    Description

      Testcase 4306756 from regression workspace for 142 is failing, Testcase needs to be modified. This bug is same as 4839979.
      Testcase <workspace_142>/test/javax/swing/JTextField/4306756 is not updated with the fix for 4839979, whereas same testcase is updated in tiger workspace and the same test is passing for 1.4.2_11-b01 also from Tiger workspace.

      -----------------------
      Difference of the java file from 142 workspace an tiger workspace is as follows,
      diff <workspace_142>/test/javax/swing/JTextField/4306756/bug4306756.java <workspace_150>/test/javax/swing/JTextField/4306756/bug4306756.java
      4a5,6
      > @library ../../regtesthelpers
      > @build Util
      26a29,30
      > private boolean finished = false;
      >
      30d33
      < f.addWindowListener(new TestStateListener());
      40a44,47
      > synchronized (bug4306756.this) {
      > finished = true;
      > bug4306756.this.notifyAll();
      > }
      50a58,71
      > public void start() {
      > Util.blockTillDisplayed(tf);
      > timer = new Timer();
      > timer.schedule(new RobotTask(), 3000);
      > synchronized (this) {
      > if (!finished) {
      > try {
      > wait();
      > } catch (Exception e) {
      > }
      > }
      > }
      > }
      >
      67,72d87
      < class TestStateListener extends WindowAdapter {
      < public void windowOpened(WindowEvent ev) {
      < timer = new Timer();
      < timer.schedule(new RobotTask(), 1000);
      < }
      < }

      Attachments

        Issue Links

          Activity

            People

              asaha Abhijit Saha
              skantesunw Srilatha Kante (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: