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

Linux: java.awt.List.remove(int) doesn't remove the item.

    Details

    • Subcomponent:
    • Resolved In Build:
      linux-beta
    • CPU:
      x86
    • OS:
      linux
    • Verification:
      Verified

      Description



      Name: skR10017 Date: 05/06/2000



      The following test creates a frame and a list with one item in it.
      Then test shows the frame and only after that removes the item.
      Empty frame should appear but under
       Java HotSpot(TM) Client VM (build 1.3.0beta-b04, mixed mode ) for Linux
      you will see the item in the list.

      Please note that java.awt.List.getItemCount() reports that
      there are no items in the list, but on the screen you see the
      working list with one item.

      --------------------------test.java------------------------------
      import java.awt.*;

      public class test
      {
          public static void main(String [] argv)
          {
              Frame f=new Frame();
              List l=new List();
              l.add("Test item");
              f.add(l);
              f.setSize(200,200);
              f.show();
              l.remove(0);
              System.out.println("Items in the list:"+l.getItemCount());
          }
      }
      ------------------------------------------------------------------


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

        Attachments

          Activity

            People

            • Assignee:
              mbronsonsunw Mike Bronson (Inactive)
              Reporter:
              kotlsunw Kotl Kotl (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: