Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-5

[configuration] ClassCastException not thrown by getBoolean()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Nightly Builds
    • 1.0
    • None
    • None
    • Operating System: All
      Platform: All

    • 27747

    Description

      Reading an existing not boolean property using the method
      public boolean getBoolean(String key)
      throws a NoSuchElementException instead of a ClassCastException as correct
      using
      public boolean getBoolean(String key, boolean defaultValue)
      public Boolean getBoolean(String key, boolean defaultValue)
      we get a null value instead of a ClassCastException as correct

      Attachments

        Activity

          People

            Unassigned Unassigned
            gufo99@yahoo.com Alessio Piccoli
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: