• Home
    • View
    • Login
    This page
    • Normal
    • Export PDF
    • Export Word
    • Attachments
    • Page Information

    Loading...
  1. Dashboard
  2. Coin
  3. Main
  4. 2009 Proposals TOC
  5. Proposal 2009 Strings In Switch

Proposal 2009 Strings In Switch

  • Created by J. Duke, last modified by Tony Squier on Jan 29, 2013

Proposal: Strings in Switch

Author

Joe Darcy

Date of Original Proposal

February 27, 2009

Text of Proposal

embedded in original proposal (mail)

Summary

Add the ability to switch on string values analogous to the existing ability to switch on values of the primitive types.

Relevant Mail Discussion Threads

  • Original proposal: http://mail.openjdk.java.net/pipermail/coin-dev/2009-February/000001.html

Discussion

There were no replies to the original proposal on the PC mailing list.

There were some comments, but not significant discussion, when Joe posted a blog entry detailing the proposal. Of the comments, I would highlight the following

  • support case-insensitive switch: another commenter pointed out this is would require Locale-specific matching, which would complicate the proposal and implementation
  • null handling: several commenters requested that a special "case null" be supported. In the current proposal, switching on a null value will cause a NullPointerException to be thrown.
Overview
Content Tools
ThemeBuilder
  • No labels

Terms of Use
• License: GPLv2
• Privacy • Trademarks • Contact Us

Powered by a free Atlassian Confluence Open Source Project License granted to https://www.atlassian.com/software/views/opensource-community-additional-license-offer. Evaluate Confluence today.

  • Kolekti ThemeBuilder Powered by Atlassian Confluence 8.5.21
  • Kolekti ThemeBuilder printed.by.atlassian.confluence
  • Report a bug
  • Atlassian News
Atlassian
Kolekti ThemeBuilder EngineAtlassian Confluence
{"serverDuration": 227, "requestCorrelationId": "a4b2a4c4fa33a327"}