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

JComponent descentants dump core in headless mode

XMLWordPrintable

    • sparc
    • solaris_7



      Name: sdR10048 Date: 12/19/2000


      Constructors of all descendants of JComponent dump core in headless
      mode. This is true for jdk1.4-beta40,44,45. See example:

      ---Test2.java:
      import javax.swing.*;

      public class Test2 {
          public static void main(String[] args) {
              new JToolBar();
              //you can write here any JComponent descendant
          }
      }
      ---
      ] dsv@falcon ~/tmp
      ] java -version
      java version "1.4.0beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0beta-b40)
      Java HotSpot(TM) Client VM (build 1.4beta-B40, mixed mode)

      ] dsv@falcon ~/tmp
      ] javac Test2.java

      ] dsv@falcon ~/tmp
      ] java -Djava.awt.headless=true Test2
      # # An unexpected exception has been detected in native code outside the VM.# Program counter=0xf579bf20
      #
      # Problematic Thread: prio=5 tid=0x28108 nid=0x1 runnable
      #
      Abort (core dumped)
      ---
      ======================================================================

            mmartaksunw Michael Martak (Inactive)
            dsvsunw Dsv Dsv (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: