Skip to main content



      Home
Home » Archived » 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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
Thanks
Previous Topic:Re: Flag disallowed Java SE keywords as errors
Next Topic:Proposed feature: Export user defined symbols as separated .properties files
Goto Forum:
  


Current Time: Fri Mar 28 05:57:07 EDT 2025

Powered by FUDForum. Page generated in 0.05119 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top