You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Stephan Ewen (JIRA)" <ji...@apache.org> on 2019/07/05 07:03:00 UTC
[jira] [Resolved] (FLINK-13043) Fix the bug of parsing Dewey number
from string
[ https://issues.apache.org/jira/browse/FLINK-13043?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stephan Ewen resolved FLINK-13043.
----------------------------------
Resolution: Fixed
Fix Version/s: 1.9.0
Fixed in 1.9.0 via 6624562982c9d57bebba8cb4b574b8ed28640a0d
> Fix the bug of parsing Dewey number from string
> -----------------------------------------------
>
> Key: FLINK-13043
> URL: https://issues.apache.org/jira/browse/FLINK-13043
> Project: Flink
> Issue Type: Bug
> Components: Library / CEP
> Reporter: Liya Fan
> Assignee: Liya Fan
> Priority: Trivial
> Labels: pull-request-available
> Fix For: 1.9.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> There is a bug in the current implementation for parsing the Dewey number:
>
> String[] splits = deweyNumberString.split("\\.");
> if (splits.length == 0) {
> return new DeweyNumber(Integer.parseInt(deweyNumberString));
> }
>
> The length in the if condition should be 1 instead of 0.
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)