You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Andreas Lehmkühler (JIRA)" <ji...@apache.org> on 2009/10/11 19:34:31 UTC
[jira] Resolved: (PDFBOX-111) Infinite recursion
[ https://issues.apache.org/jira/browse/PDFBOX-111?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Lehmkühler resolved PDFBOX-111.
---------------------------------------
Resolution: Fixed
Fix Version/s: 0.7.3
Seems to be fixed in the past on SF.
> Infinite recursion
> ------------------
>
> Key: PDFBOX-111
> URL: https://issues.apache.org/jira/browse/PDFBOX-111
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel.AcroForm
> Fix For: 0.7.3
>
>
> [imported from SourceForge]
> http://sourceforge.net/tracker/index.php?group_id=78314&atid=552832&aid=1373964
> Originally submitted by nobody on 2005-12-05 15:41.
> If you try to set a value in a PDChoiceField, it gets
> into an infinite loop, and throws a stack overflow
> error.
> Here's the relevant code, from PDChoiceField's
> **setValue** method:
> if( optionValue.equals( value.getString() ) )
> {
> setValue( optionValue );
> indexSelected = i;
> }
> Notice that the same method is being called!! If you
> look above where this code is (line 103), you'll
> notice that the super class's setvalue is called at
> line 91. I think you might want to do the same,
> otherwise the value will never get set for the
> choicefield, but will just call itself repeatedly
> until the stack overflows (which is the error I got)
> Please fix this!
> Thanks.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.