| Summary: | Batik-based SVG integration must stop processing and dispose objects | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Andi Bur <andi.bur> |
| Component: | Scout | Assignee: | Project Inbox <scout.core-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | critical | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Andi Bur
Stop batik's processing thread and dispose any attached BridgeContext objects. The latter implements finalize() and is therefore subject to a Finalizer. Hence the BridgeContext objects are not garbage collected immediately. Migration: Switch from org.eclipse.scout.svg.client.SVGUtility.readSVGDocument(InputStream, boolean) either to (if no CSS, text size and and bounding box operations are required) org.eclipse.scout.svg.client.SVGUtility.readSVGDocument(InputStream) or to (for performing CSS, text size and and bounding box operations) org.eclipse.scout.svg.client.SVGUtility.readSVGDocumentForGraphicalModification(InputStream) The latter method returns a BridgeContext that must be disposed (BridgeContext.dispose()) when it is not required anymore. The actual SVG document is referenced by the bridge context as well: (SVGDocument) bridgeContext.getDocument() ticket closed. deliverd as part of eclipse scout 3.8.0 (juno release train) |