This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Google Summer of Code
- From: Per Bothner <per at bothner dot com>
- To: kawa at sourceware dot org
- Date: Wed, 16 Apr 2014 18:17:36 -0700
- Subject: Re: Google Summer of Code
- Authentication-results: sourceware.org; auth=none
- References: <20140305094242 dot 349492d0 at debian-andrebask> <5316F956 dot 8040303 at gmail dot com> <20140305132208 dot 3081f8dc at debian-andrebask> <m2lhwo48vi dot fsf at gmail dot com> <5319088C dot 5060401 at bothner dot com> <7B118191-4144-4937-B679-89392D5463EE at theptrgroup dot com> <20140316012026 dot 4e0ebfef at debian-andrebask> <53269580 dot 8040205 at bothner dot com> <20140320204856 dot 5aa0b4d3 at debian-andrebask> <532BAA5F dot 3000606 at bothner dot com> <20140328121426 dot 74f3e92d at vaio> <5337BD0C dot 8030301 at bothner dot com> <20140403021150 dot 0dc0f6f4 at vaio> <533F0CC5 dot 1060108 at bothner dot com> <20140413180307 dot 59d3fd9c at debian-andrebask>
On 04/13/2014 09:03 AM, Andrea Bernardini wrote:
I think I solved the problem, besides the stack size inconsistency
there was a missing return statement at the end of the switch bytecode,
and after each case.
That doesn't seem right - why should switch automatically cause a
a method return?
And in fact it doesn't work - the test suite has numerous failures.
My recommendation: Run the test-suite early and often.
This is easiest if you're developing on a Unix-like system (e.g.
GNU/Linux or MacOS) and using configure+make (rather than ant builds),
since you just do:
make check -k >& LOG.CHECK
I stash a copy of LOG.CHECK before I make changes, and compare (with
diff) the result after my changes.
(Recently I've made a number of improvements in the Windows support,
so that 'make check -k' works much better on Windows - tested using
MSYS. Patches welcome.)
The code handling the numCases > 1 case
automatically inserts the return statements, instead when numCases <=
1 they have to be inserted explicitly.
Where? I don't see anything that inserts a return statement.
--
--Per Bothner
per@bothner.com http://per.bothner.com/