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 2026/09/13 07:27:00 UTC

[jira] [Commented] (PDFBOX-6261) ClassCastException in PDStandardAttributeObject.getArrayOfString()

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

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

Commit 1938161 from Tilman Hausherr in branch 'pdfbox/branches/3.0'
[ https://svn.apache.org/r1938161 ]

PDFBOX-6261: fix ClassCastException so that method works, improve javadoc, add logging

> ClassCastException in PDStandardAttributeObject.getArrayOfString()
> ------------------------------------------------------------------
>
>                 Key: PDFBOX-6261
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-6261
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.37, 3.0.8 PDFBox
>            Reporter: Tilman Hausherr
>            Priority: Major
>             Fix For: 2.0.38, 3.0.9 PDFBox, 4.0.0
>
>
> {noformat}
> java.lang.ClassCastException: class org.apache.pdfbox.cos.COSString cannot be cast to class org.apache.pdfbox.cos.COSName (org.apache.pdfbox.cos.COSString and org.apache.pdfbox.cos.COSName are in unnamed module of loader 'app')
> 	at org.apache.pdfbox.pdmodel.documentinterchange.taggedpdf.PDStandardAttributeObject.getArrayOfString(PDStandardAttributeObject.java:112)
> 	at org.apache.pdfbox.pdmodel.documentinterchange.taggedpdf.PDTableAttributeObject.getHeaders(PDTableAttributeObject.java:127)
> 	at org.apache.pdfbox.pdmodel.documentinterchange.taggedpdf.PDTableAttributeObject.toString(PDTableAttributeObject.java:207)
> {noformat}
> This has never worked and has never been used and never been touched, I think it is a copy & paste error.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org