You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Chia-Ping Tsai (Jira)" <ji...@apache.org> on 2021/02/12 17:16:03 UTC

[jira] [Resolved] (KAFKA-12321) the comparison function for uuid type should be 'equals' rather than '=='

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

Chia-Ping Tsai resolved KAFKA-12321.
------------------------------------
    Resolution: Fixed

> the comparison function for uuid type should be 'equals' rather than '=='
> -------------------------------------------------------------------------
>
>                 Key: KAFKA-12321
>                 URL: https://issues.apache.org/jira/browse/KAFKA-12321
>             Project: Kafka
>          Issue Type: Bug
>            Reporter: Chia-Ping Tsai
>            Assignee: Chia-Ping Tsai
>            Priority: Major
>             Fix For: 2.8.0, 2.7.1, 2.6.2
>
>
> trunk:
> {code:java}
> if (this.taggedUuid != Uuid.fromString("H3KKO4NTRPaCWtEmm3vW7A"))
> {code}
> expected:
> {code:java}
> if (!this.taggedUuid.equals(Uuid.fromString("H3KKO4NTRPaCWtEmm3vW7A")))
> {code}



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