This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: stack overflows by java.lang.reflect.Array.newInstance(Class,int)


Problem solved by myself: There was a tricky infinite recursion

public final int getLambda() {
   return getLambda();
}

instead of

public final int getLambda() {
   return parameters.lambda;
}

Because I made the variable 'parameters' private, I had to introduce getters like getLambda() for every appeance of parameters.lambda.

The only way to find this bug was to:

   1. nativ compile the code with GCJ.
   2. gdb the executable

java and gij failed! This trick worked!

Bojan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]