[
https://issues.apache.org/jira/browse/PDFBOX-3097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14998890#comment-14998890
]
ASF subversion and git services commented on PDFBOX-3097:
---------------------------------------------------------
Commit 1713695 from [~tilman] in branch 'pdfbox/branches/1.8'
[ https://svn.apache.org/r1713695 ]
PDFBOX-3097: use getObject instead of get + minor code cleanup
> ClassCastException in Axial / Radial shading when object reference in extends
> -----------------------------------------------------------------------------
>
> Key: PDFBOX-3097
> URL: https://issues.apache.org/jira/browse/PDFBOX-3097
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 1.8.10, 1.8.11, 2.0.0
> Reporter: Tilman Hausherr
> Assignee: Tilman Hausherr
> Fix For: 1.8.11, 2.0.0
>
>
> {code}
> java.lang.ClassCastException: org.apache.pdfbox.cos.COSObject cannot be cast
> to org.apache.pdfbox.cos.COSBoolean
>
> org.apache.pdfbox.pdmodel.graphics.shading.AxialShadingContext.<init>(AxialShadingContext.java:92)
>
> org.apache.pdfbox.pdmodel.graphics.shading.AxialShadingPaint.createContext(AxialShadingPaint.java:67)
> {code}
> Same bug as in ghostscript: extends as references. Fix by using getObject()
> instead of get().
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]