You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/11/10 17:54:11 UTC

[jira] [Commented] (PDFBOX-3097) ClassCastException in Axial / Radial shading when object reference in extends

    [ https://issues.apache.org/jira/browse/PDFBOX-3097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14998889#comment-14998889 ] 

ASF subversion and git services commented on PDFBOX-3097:
---------------------------------------------------------

Commit 1713694 from [~tilman] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1713694 ]

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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org