Weird Eclipse Bug (?) !!!

B

Bob

Hi everyone,

I am using eclipse 3.0.1 for a project and I found the following
strange bug when running my programs from the eclipse environment.

In some rare occasions, when calling a static method, the method is
never invoked.

For example, calling:

MyClass.myMethod(myArg);

the method is never invoked!! It just hangs there!

sometimes restarting Eclipse solves the problem but it appears again
after a while (and after some changes to the code).

Has anyone else faced this problem before? Do you know any ways around
it?

Regards,

Bob

PS: Note that I am only assuming that it's a bug with Eclipse. An other
unlikely canditate would be a bug with JVM but I wouldn't think that
such a foundamental bug would exist in JVM. On the other hand it could
be my fault but I have really tried everything and I am pretty sure I
am not doing something wrong.
 
O

Owen Jacobson

Hi everyone,

I am using eclipse 3.0.1 for a project and I found the following strange
bug when running my programs from the eclipse environment.

In some rare occasions, when calling a static method, the method is never
invoked.

For example, calling:

MyClass.myMethod(myArg);

the method is never invoked!! It just hangs there!

Hangs where? Fire up the debugger, with breakpoints in strategic places,
and *follow the code execution*. Then tell us what the _actual code_
looks like around the call(s) that fail(s) and what the execution path
actually is.
PS: Note that I am only assuming that it's a bug with Eclipse. An other
unlikely canditate would be a bug with JVM but I wouldn't think that such
a foundamental bug would exist in JVM. On the other hand it could be my
fault but I have really tried everything and I am pretty sure I am not
doing something wrong.

I consulted my File of Good Advice on this one, and it said:

#11907 Looking for a compiler bug is the strategy of LAST resort.
LAST resort.

-Owen
 
T

Tris Orendorff

Hi everyone,

I am using eclipse 3.0.1 for a project and I found the following
strange bug when running my programs from the eclipse environment.

In some rare occasions, when calling a static method, the method is
never invoked.

For example, calling:

MyClass.myMethod(myArg);

the method is never invoked!! It just hangs there!

Are you sure you are not ignoring exceptions? ie:

catch (Exception e) {
// nothing here is bad news. At least put in an "e.printStackTrace();"
}

--

Sincerely,

Tris Orendorff
[Two antennae meet on a roof, fall in love and get married. The ceremony wasn't much, but the reception
was excellent.]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top