Uploaded image for project: 'Flume (READ-ONLY)'
  1. Flume (READ-ONLY)
  2. FLUME-236

Builders shouldn't just rely on Boolean.parseBoolean.

    Details

    • Type: Bug
    • Status: Open
    • Priority: 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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: