This is the mail archive of the kawa@sourceware.org mailing list for the Kawa 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: Google Summer of Code




On 04/02/2014 05:11 PM, Andrea Bernardini wrote:

I believe the problem is in this part of the SwitchState.finish()
method:
if (numCases <= 1)
{
     ....
}

Is this numCases==0? If so I don't see where the bug is.
Perhaps you could put System.println("line N SP:"+SP) on
various lines and see if you can figure out what the problem is.

I tried to modify this code to solve the problem, without success for
now (I get an "unimplemented bytecode" error at the end of execution,
not in compilation), but I noticed that removing this if-block entirely
and using the more general code that follows in the method, my code
compiles and runs correctly.

That suggests you're right - and Ill probably say "duh - that should
have been obvious" once we figure it out.  It's almost certainly a
1-line fix.

--
	--Per Bothner
per@bothner.com   http://per.bothner.com/


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