Strings in switch
Ulf Zibis
Ulf.Zibis at gmx.de
Mon Mar 30 11:52:49 PDT 2009
Hi Joe,
I refer to your proposal:
http://mail.openjdk.java.net/pipermail/coin-dev/2009-February/000001.html
If your proposal would unchanged be taken into JDK 7, there won't be any compatible way to implement my more general proposal "Extend switch .. case statement for Object types and simple expressions" in future version of JDK !!!
--> So switch .. case statement should compare for IDENTITY if not syntactically determined otherwise.
--> compare for EQUALITY would also break semantic of existing switch .. case statement.
-Ulf
More information about the coin-dev
mailing list