JDK-6579765 : JList cause an exception when exclusively add data to the list
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2007-07-12
  • Updated: 2011-02-16
  • Resolved: 2007-10-30
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
SUSE Linux Enterprise Server 10

Linux 2.6.16.21-0.25-smp #1 SMP Tue Sep 19 07:26:15 UTC 2006 i686 i686 i386 GNU/Linux

A DESCRIPTION OF THE PROBLEM :
  Bug ID:  6253801 Has a status of "Closed, not a bug".  However if the initial evaluation of this issue were correct, you would think using SwingUtilities.invokeAndWait() when adding elements to the list model would resolve the issue since that would be executed synchronously on the AWT event dispatching thread.  However modifying the Sample class provided to reproduce this issue to use that approach does not resolve the issue.

Also for Bug ID:  6253801 a SDN user,  jasvantsingh pointed out a bug in Class javax.swing.plaf.basic.BasicListUI.  See the comments for Bug ID:  6253801.

It's clear this issue is still not resolved and it is a actual issue and not a developer error as initially indicated.


REPRODUCIBILITY :
This bug can be reproduced always.

Comments
EVALUATION I have nothing to add about test case from the CR 6253801, that test case is completely wrong; moreover Swing is accessed from 2 stranger threads - the main thread and the custom thread see the following tutorial for more info http://java.sun.com/docs/books/tutorial/uiswing/concurrency/initial.html
30-10-2007