You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Matt Juntunen (Jira)" <ji...@apache.org> on 2021/07/24 02:16:00 UTC

[jira] [Commented] (GEOMETRY-137) SimpleTextParser should throw ParseException for too long string

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

Matt Juntunen commented on GEOMETRY-137:
----------------------------------------

Pull request: https://github.com/apache/commons-geometry/pull/177

> SimpleTextParser should throw ParseException for too long string
> ----------------------------------------------------------------
>
>                 Key: GEOMETRY-137
>                 URL: https://issues.apache.org/jira/browse/GEOMETRY-137
>             Project: Apache Commons Geometry
>          Issue Type: Bug
>            Reporter: Matt Juntunen
>            Priority: Major
>
> The {{SimpleTextParser}} class currently throws an {{IllegalStateException}} when it encounters a string that exceeds the configured maximum string length. Instead, it should throw a {{ParseException}} (internal subclass of {{IOException}}) since the long string represents an unexpected input. This will make the behavior consistent with the behavior when other unexpected tokens are encountered.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)