You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2025/12/13 11:23:38 UTC

svn commit: r1930496 - pdfbox/branches/2.0/xmpbox/src/main/java/org/apache/xmpbox/schema

Author: tilman
Date: Sat Dec 13 11:23:38 2025
New Revision: 1930496

Log:
PDFBOX-6121: avoid ClassCastException elsewhere

Modified:
   pdfbox/branches/2.0/xmpbox/src/main/java/org/apache/xmpbox/schema/PhotoshopSchema.java

Modified: pdfbox/branches/2.0/xmpbox/src/main/java/org/apache/xmpbox/schema/PhotoshopSchema.java
==============================================================================
--- pdfbox/branches/2.0/xmpbox/src/main/java/org/apache/xmpbox/schema/PhotoshopSchema.java	Sat Dec 13 11:23:34 2025	(r1930495)
+++ pdfbox/branches/2.0/xmpbox/src/main/java/org/apache/xmpbox/schema/PhotoshopSchema.java	Sat Dec 13 11:23:38 2025	(r1930496)
@@ -298,8 +298,8 @@ public class PhotoshopSchema extends XMP
 
     public String getDateCreated()
     {
-        TextType tt = ((TextType) getProperty(DATE_CREATED));
-        return tt == null ? null : tt.getStringValue();
+        DateType dt = getDateCreatedProperty();
+        return dt == null ? null : dt.getStringValue();
     }
 
     public void setDateCreated(String text)