Flume
  1. Flume
  2. FLUME-236

Builders shouldn't just rely on Boolean.parseBoolean.

    Details

    • Type: Bug Bug
    • Status: Reopened
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: v0.9.0, v0.9.1
    • Fix Version/s: v0.9.5
    • Component/s: None
    • Labels:
      None

      Description

      The semantics of parseBoolean (http://download-llnw.oracle.com/javase/6/docs/api/java/lang/Boolean.html#booleanValue()) says that and string is parsable as a boolean.

      So Boolean.parseBoolean("yes") = false;

      This may cause unexpected results for the user.

        Issue Links

          Activity

          Alexander Alten-Lorenz made changes -
          Resolution Won't Fix [ 2 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Alexander Alten-Lorenz made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Won't Fix [ 2 ]
          Mark Thomas made changes -
          Project Import Tue Aug 02 16:57:12 UTC 2011 [ 1312304232406 ]
          Jonathan Hsieh made changes -
          Fix Version/s v0.9.4 [ 10050 ]
          Fix Version/s v0.9.5 [ 10090 ]
          Jonathan Hsieh made changes -
          Fix Version/s v0.9.4 [ 10050 ]
          Jonathan Hsieh made changes -
          Link This issue relates to FLUME-420 [ FLUME-420 ]
          Jonathan Hsieh made changes -
          Field Original Value New Value
          Summary Buiders shouldn't just rely on Boolean.parseBoolean. Builders shouldn't just rely on Boolean.parseBoolean.
          Affects Version/s v0.9.1 [ 10013 ]
          Affects Version/s v0.9.0 [ 10014 ]
          Jonathan Hsieh created issue -

            People

            • Assignee:
              Unassigned
              Reporter:
              Jonathan Hsieh
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Development