|Flag disallowed Java SE keywords as errors [message #501527]
||Wed, 02 December 2009 16:36
| Heiko Selber
Registered: July 2009
I wanted to re-use some Java SE classes in a Java ME project.|
In a first step, I corrected all kinds of obvious errors that Eclipse showed me, like the slightly different Collection APIs.
That was easy, but the next step was harder than necessary:
After all error were removed, I tried to build the project, but preverification failed with a very un-verbose message:
"Error preverifying class my.path.Class"
After some searching I found the culprits: The classes used keywords like native and finalize(), which are not allowed in Java ME.
It took me quite some time to find them, because I didn't get a hint from Eclipse whatsoever, and the offending keywords were hidden somewhere deep in the code.
Isn't it possible to flag these keywords as errors when they are used in an Java ME project? I guess it should be possible to modify or plug something into the Java editor/compiler.
Powered by FUDForum
. Page generated in 0.01672 seconds