Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Mobile Tools for Java (MTJ) » Flag disallowed Java SE keywords as errors(MTJ Editor allows keywords like finalize() and native, but preverification fails without a clue)
Flag disallowed Java SE keywords as errors [message #501527] Wed, 02 December 2009 11:36 Go to next message
Heiko Selber is currently offline Heiko Selber
Messages: 12
Registered: July 2009
Junior Member
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.
Re: Flag disallowed Java SE keywords as errors [message #502489 is a reply to message #501527] Tue, 08 December 2009 09:23 Go to previous messageGo to next message
Diego Madruga Sandin is currently offline Diego Madruga Sandin
Messages: 59
Registered: July 2009
Member
Hi,

Could you fill out a feature request on MTJ bugzilla?

Thanks
Diego
Re: Flag disallowed Java SE keywords as errors [message #502702 is a reply to message #502489] Wed, 09 December 2009 08:58 Go to previous messageGo to next message
Heiko Selber is currently offline Heiko Selber
Messages: 12
Registered: July 2009
Junior Member
Diego Madruga Sandin wrote on Tue, 08 December 2009 09:23
Could you fill out a feature request on MTJ bugzilla?



Done: https://bugs.eclipse.org/bugs/show_bug.cgi?id=297336
Re: Flag disallowed Java SE keywords as errors [message #502707 is a reply to message #502702] Wed, 09 December 2009 09:05 Go to previous message
Diego Madruga Sandin is currently offline Diego Madruga Sandin
Messages: 59
Registered: July 2009
Member
Thanks
Previous Topic:Flag disallowed Java SE keywords as errors
Next Topic:Re: Flag disallowed Java SE keywords as errors
Goto Forum:
  


Current Time: Thu Apr 17 08:38:03 EDT 2014

Powered by FUDForum. Page generated in 0.01639 seconds