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

fp.bugs 4091 List code causes exception under Solaris CDE *only*

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • None
    • 1.0.1
    • client-libs
    • sparc
    • solaris_2.5

      From: ###@###.### (D.Chapman)
      Subject: Re: Java Bug Report 4091

      Hi Jim,

      I've investigated this further and the problem
      to be with libXm.so.3

      If I use the version in jdk1.0 I get the problem,
      if I use the version from /usr/dt/lib everything is OK.
      It must be something to do with my CDE environment.

      A couple of people I work with have demonstrated the
      same problem. I work around now is to copy the
      /usr/dt/lib/libXm.so.3 to the jdk/lib directory.

      Does any of this make any sense.

      Thanks

      David Chapman.

      PS I can send you a dbx stack trace where it fails, if you
      want.
      From: ###@###.### (David Chapman)
      This does not look like form output to me.


      Hi,

      The awt list core dumps under the following scenario:

      Platform: Solaris 2.4
      Version: jdk 1.0

      Problem:
      1) Create Frame
      2) Add Panel
      3) Add list to panel, size 10
      4) Add 3 items
      5) Select last item
      6) Double click mouse in empty region of list
      7) core dump

      A fix or patch would be appreciated as soon as posible,
      Thanks
      David Chapman

      Example code:
      ============
      import java.awt.*;

      /**
      * List Box Core Dump on Solaris 2.4
      ** Create List on a panel.
      * Select an item, e.g. the last item
      * Click in an area in the list where there is no item
      * e.g. below the last selected item
      * Click a couple of time untill core dump
      */
      class FrameList extends Frame {
      TextField t;

      public FrameList() {
      createList();
      }

      public void createList(){
      Panel p;
      List l;

      l = new List(10, false);
      l.addItem("Hello David1");
      l.addItem("Hello David2");
      l.addItem("Hello David3");
      p = new Panel();
      p.setLayout(new BorderLayout());
      p.add("Center", l);
      add("Center", p);

      }

      public static void main(String args[]) {
      FrameList f = new FrameList();
      f.move(400, 400);
      f.resize(300,300);
      f.show();
      }

      }

            amfowler Anne Fowler (Inactive)
            bhagen Benjamin Hagen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: