Nes Cohen created DRILL-7780:
--------------------------------

             Summary: Potentially Erroneous String Comparison by reference
                 Key: DRILL-7780
                 URL: https://issues.apache.org/jira/browse/DRILL-7780
             Project: Apache Drill
          Issue Type: Bug
            Reporter: Nes Cohen


Comparing strings in java by reference, even the empty string, can be 
problematic because two "equal" strings may be different objects with different 
references.

This occurs notably in two locations:
[https://github.com/apache/drill/blob/0726b83d9347cbb8bd1bc64a8d10c12c1125549a/exec/java-exec/src/main/java/org/apache/drill/exec/server/BootStrapContext.java#L142]
[https://github.com/apache/drill/blob/0726b83d9347cbb8bd1bc64a8d10c12c1125549a/common/src/main/java/org/apache/drill/common/KerberosUtil.java#L50|https://github.com/nescohen/drill/blob/0726b83d9347cbb8bd1bc64a8d10c12c1125549a/common/src/main/java/org/apache/drill/common/KerberosUtil.java#L50]



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

Reply via email to