United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6557086 Attempt to dispose jpeg reader form another thread may cause crash
JDK-6557086 : Attempt to dispose jpeg reader form another thread may cause crash

Details
Type:
Bug
Submit Date:
2007-05-14
Status:
Closed
Updated Date:
2011-03-07
Project Name:
JDK
Resolved Date:
2011-03-07
Component:
client-libs
OS:
linux,generic
Sub-Component:
javax.imageio
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
1.4.2,7
Fixed Versions:

Related Reports
Backport:
Backport:
Backport:
Backport:
Backport:
Backport:
Backport:
Backport:
Relates:
Relates:

Sub Tasks

Description
Invocation of dispose() method form another thread may cause crash in jpeg library
if reading is in progress. Same for jpeg writer: if writing operation is in progress,
then attempt to dispose writer instance form another thread may cause crash in jpeg
library.

                                    

Comments
EVALUATION

Public method dispose() of jpeg image reader and jpeg image writer should be protected
by thread locks to prevent concurrent change of reader/writer state.
                                     
2007-05-14



Hardware and Software, Engineered to Work Together