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
New Developer
jlgosse
Posts: 41
Registered: 05-24-2009

How bad is the JVM?

I'm getting StackOverflowErrors on seemingly trivial recursive functions. 

 

Should I be avoiding recursion, or?

BlackBerry Mobile Software Developer
http://www.mobilitea.com/blog/
Please use plain text.
Developer
RexDoug
Posts: 4,649
Registered: 07-21-2008

Re: How bad is the JVM?

Every time I have had a stack overflow, it turned out to be my code. :smileyhappy:

 

Please use plain text.
Developer
Posts: 1,474
Registered: 04-14-2009

Re: How bad is the JVM?

How deep does your code recurse? The usual cause of StackOverFlows is infinite recursion (e.g., due to a bug).

Please use plain text.
Developer
ydaraishy
Posts: 562
Registered: 09-30-2009

Re: How bad is the JVM?

You might like to share your "trivially recursive functions", so we can test and try and reproduce.

Please use plain text.