groovy

handle null more gracefully in switch/case

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.0-JSR-5
  • Fix Version/s: 1.0-JSR-6
  • Component/s: syntax
  • Labels:
    None
  • Number of attachments :
    1

Description

allow

switch(null) {
case null : ...
}

without throwing exceptions

Activity

Hide
Dierk Koenig added a comment -

fixed thanks to patch from Marc Guillemot.

Tests enhanced.

Show
Dierk Koenig added a comment - fixed thanks to patch from Marc Guillemot. Tests enhanced.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: