Enum modernization proposal
assembling signals
assembling.signals at yandex.ru
Fri Sep 18 21:14:48 UTC 2009
(sent again, now with CC to mailing list)
Sorry, you got me wrong.
JDK is using tons of "pseudo enums" such as:
static final int OPAQUE = ...
static final int BITMASK = ...
static final int TRANSLUCENT = ...
(from java.awt.Transparency)
Using those is unhandy:
Those int's have no type, have no value validation.
At runtime, they apear as usual integers.
My proposal is an enhancement for legacy APIs.
17.09.09, 01:06, "David M. Lloyd" :
> Java has had "real" enums since Java 5:
> http://java.sun.com/j2se/1.5.0/docs/guide/language/enums.html
> - DML
More information about the core-libs-dev
mailing list