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

Dialog or Frame .setVisible() affects java.exe exit code

XMLWordPrintable

    • x86
    • windows

      JCK : JCK6.0-runtime b14
      J2SE : FAIL - JDK6.0 b60-b65
                       PASS -
      Platform[s] : FAIL - windows vista amd64

      How to reproduce:
      ====================
      //uncomment d.setVisible(true); or f.setVisible(true);

      import java.awt.*;

      public class Test {
          public static void main (String[] args) {

              int s = Dialog2021();
              
              System.exit(s);
          }

          public static int Dialog2021() {

              Frame f = new Frame();
      // Dialog d = new Dialog(f);
      // d.setVisible(true);
              f.setVisible(true);

                      return 95;
          }
      }

      Test output:
      =============
      test return "0" instead of "95"

      Specific Machine Info:
      =====================
      Windows vista on amd64

      JCK tests fail:
      ======================
       api/java_awt/Dialog/index.html#Decorated
       api/java_awt/Frame/descriptions.html#Decorated
       api/java_awt/Robot/index.html#key
       api/java_awt/interactive/event/EventTests.html#EventTest0002
       api/java_awt/interactive/event/EventTests.html#EventTest0009
       api/java_awt/interactive/event/EventTests.html#EventTest0010
       api/java_awt/interactive/event/EventTests.html#EventTest0012
       api/javax_swing/DefaultFocusManager/index.html#getset
       api/javax_swing/border/BevelBorder/index.html#Ctor
       api/javax_swing/border/EtchedBorder/index.html#Ctor
       api/javax_swing/border/LineBorder/index.html#Ctor
       api/javax_swing/border/MatteBorder/index.html#Ctor
       api/javax_swing/border/SoftBevelBorder/index.html#Ctor
       api/javax_swing/plaf/metal/MetalToggleButtonUI/index.html#update
       api/javax_swing/plaf/metal/MetalToolBarUI/MetalDockingListener/index.html#Handler
       api/javax_swing/plaf/multi/MultiDesktopIconUI/index.html#public
       api/javax_swing/plaf/multi/MultiProgressBarUI/index.html#public
       api/javax_swing/plaf/multi/MultiScrollBarUI/index.html#public
       api/javax_swing/plaf/multi/MultiSeparatorUI/index.html#public
       api/javax_swing/plaf/multi/MultiSliderUI/index.html#public
       api/javax_swing/plaf/multi/MultiTabbedPaneUI/index.html#public
       api/javax_swing/plaf/multi/MultiTreeUI/index.html#public
      New testcases failed with the same exception on Windows Vista on mustang b67:
      api/javax_swing/text/JTextComponent/AccessibleJTextComponent/index.html#AccessibleText
      api/javax_swing/LayoutFocusTraversalPolicy/index.html#Methods
      api/javax_swing/SortingFocusTraversalPolicy/index.html#Methods

            osemenovsunw Oleg Semenov (Inactive)
            dtoporovsunw Denis Toporov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: