|
|
|
[
Permlink
| « Hide
]
Maxim Shafirov - 19 Jul 05 18:02
I'd rather say this is javac bug since default case is indeed unreachable.
Yep, because it's complaint with javac, in this case
------------------- Maxim Shafirov http://www.jetbrains.com "Develop with pleasure!" Yep, because it's complaint with javac, in this case
------------------- Maxim Shafirov http://www.jetbrains.com "Develop with pleasure!" Yep, because it's complaint with javac, in this case
------------------- Maxim Shafirov http://www.jetbrains.com "Develop with pleasure!" Using return statements instead of field assignments seems to be a variant form of this:
public final class DefaultBranchUnnecessary } enum Bird { DUCK, GOOSE, } What's the sun bug number? Yep, because it's complaint with javac, in this case
------------------- Maxim Shafirov http://www.jetbrains.com "Develop with pleasure!" It looks like the sun bug is #6398226, located here: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6398226
|
|||||||||||||||||||||||||||||||||||||||||||||||||