https://issues.apache.org/bugzilla/show_bug.cgi?id=50698
Summary: [PATCH] Synchronize access to java.awt.ICC_Profile
Product: Fop
Version: 1.1dev
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: general
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=26588)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=26588)
proposed patch addressing potential issue in FOP
In response to a recent post on fop-users@ (see:
http://marc.info/?l=fop-user&m=129646673801270&w=2), the attached patch:
- adds two methods to fop.util.ColorProfileUtil that perform calls to
ICC_Profile.getInstance() in a synchronized fashion (only the InputStream and
int variants are used)
- replaces all direct calls to ICC_Profile.getInstance() in FOP's code with
calls to one of those new methods
Note: The issue mentioned in the original post is *not* addressed by this
patch, as that instance of the issue arises somewhere in XMLGraphics.
Probably a good step to take towards solving this in XG, is to migrate the
ColorProfileUtil class there, and have FOP reference that one.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.