[ 
https://issues.apache.org/jira/browse/XGC-86?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Teon Metselaar updated XGC-86:
------------------------------

    Description: 
When checkEOF is set to false, the value of eofFound is never set to true when 
the document is parsed.

This way, the method checkLine will always throw a DSCException that %%EOF is 
not found at the end of the file.

I think this exception should only be thrown when checkEOF is true OR the value 
of eofFound should be set regardless of the value of checkEOF

  was:
When checkEOF is set to false, the value of eofFound is never set to true when 
the document is parsed.

This way, the method checkLine will always throw a DSCException that %%EOF is 
not found at the end of the file.

In my opinion, checkLine should only throw this exception when checkEOF is true.


> DSCParser always throws DSCException %%EOF not found when checkEOF is false
> ---------------------------------------------------------------------------
>
>                 Key: XGC-86
>                 URL: https://issues.apache.org/jira/browse/XGC-86
>             Project: XMLGraphicsCommons
>          Issue Type: Bug
>          Components: postscript
>    Affects Versions: 1.4
>            Reporter: Teon Metselaar
>            Priority: Minor
>
> When checkEOF is set to false, the value of eofFound is never set to true 
> when the document is parsed.
> This way, the method checkLine will always throw a DSCException that %%EOF is 
> not found at the end of the file.
> I think this exception should only be thrown when checkEOF is true OR the 
> value of eofFound should be set regardless of the value of checkEOF



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to