I'm coming from the C# world where I can write an enumerated type like so:
...and then call it from another class like so, and it would work:
However, I get an error (Eclipse) telling me "QueryType.STORED_PROCEDURE cannot be resolved". Code-hinting reveals that I all have available to me from the QueryType type is "QueryType.class" and "QueryType.this"...both of which don't make any sense to me.
I'm expecting to be able to call the enum values in a static fashion but I can't!?
I have an import reference to it, that's not the problem...
Documentation on the net is dirt poor and I can't find one good solid example.
This is always a problem when using features that are new to the latest release of a language. The version of Eclipse you are using is compling your code with the 1.4 compiler and you are using 1.5 features. If you have Ant installed, you can get around this by writting a build script that defines which compiler to use and run the Ant script from Eclipse.
Originally posted by R�mi Forax: It's an eclipse bug !
Actually it's not a bug - it's work in progress.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus