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

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

Tilman Hausherr created PDFBOX-3097:
---------------------------------------

             Summary: 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