# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: AcroFormValidationProcess.java
--- AcroFormValidationProcess.java Base (BASE)
+++ AcroFormValidationProcess.java Locally Modified (Based On LOCAL)
@@ -34,10 +34,10 @@
 import org.apache.pdfbox.cos.COSBase;
 import org.apache.pdfbox.cos.COSName;
 import org.apache.pdfbox.pdmodel.PDDocumentCatalog;
-import org.apache.pdfbox.pdmodel.interactive.action.PDFormFieldAdditionalActions;
 import org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationWidget;
 import org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm;
 import org.apache.pdfbox.pdmodel.interactive.form.PDField;
+import org.apache.pdfbox.pdmodel.interactive.form.PDFieldTreeNode;
 import org.apache.pdfbox.preflight.PreflightContext;
 import org.apache.pdfbox.preflight.ValidationResult.ValidationError;
 import org.apache.pdfbox.preflight.exception.ValidationException;
@@ -104,7 +104,7 @@
         { // the list can be null is the Field doesn't have child
             for (Object obj : lFields)
             {
-                if (!valideField(ctx, (PDField) obj))
+                if (!valideField(ctx, (PDFieldTreeNode) obj))
                 {
                     return false;
                 }
@@ -125,10 +125,10 @@
      * @return the result of the check for A or AA entries.
      * @throws IOException
      */
-    protected boolean valideField(PreflightContext ctx, PDField aField) throws IOException
+    protected boolean valideField(PreflightContext ctx, PDFieldTreeNode aField) throws IOException
     {
         boolean res = true;
-        PDFormFieldAdditionalActions aa = aField.getActions();
+        COSBase aa = aField.getDictionary().getDictionaryObject(COSName.AA);
         if (aa != null)
         {
             addValidationError(ctx, new ValidationError(ERROR_ACTION_FORBIDDEN_ADDITIONAL_ACTIONS_FIELD,
