Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
rcmaniac25
Posts: 1,789
Registered: ‎04-28-2009
My Carrier: Verizon
Accepted Solution

Preverify error-Illegal type

You might know my library "Bing for BlackBerry" at http://bbing.codeplex.com/. I recently got a new computer, moved the project's source over to the new computer and now I get a preverify error.

 

Message:

Error preverifying class bing.common.BingXMLDelegate
    VERIFIER ERROR bing/common/BingXMLDelegate.<init>(Lnet/rim/device/api/i18n/ResourceBundle;Z)V:
Illegal type in constant pool

 

You can view the source code online but it worked before, any idea what might be going on?

------------------------------------------------------------
Three simple rules:
1. Please use the search bar before making new posts.
2. Kudo posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Please use plain text.
Developer
rcmaniac25
Posts: 1,789
Registered: ‎04-28-2009
My Carrier: Verizon

Re: Preverify error-Illegal type

Has anyone else had a "Illegal type..." error?

------------------------------------------------------------
Three simple rules:
1. Please use the search bar before making new posts.
2. Kudo posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Please use plain text.
Developer
rcmaniac25
Posts: 1,789
Registered: ‎04-28-2009
My Carrier: Verizon

Re: Preverify error-Illegal type

Nevermind, forgot to change Java compiler settings to 1.4 (default is 1.6). That fixed the problem.

------------------------------------------------------------
Three simple rules:
1. Please use the search bar before making new posts.
2. Kudo posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Please use plain text.
Developer
Darknoe
Posts: 92
Registered: ‎02-22-2011

Re: Preverify error-Illegal type

Thanks! I had the same problem.

Please use plain text.