[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: DEFECT REPORT: compiler generating invalid bytecode
|
Jim Sculley wrote:
> Aha! There's the problem. This code isn't quite right. Move the
> declaration of 'foo' inside the 'for' loop like this:
> public class LocalBug {
> public static void main(String[] args) {
> for (int i = 0; i < 1; i++) {
> int foo;
> try {
> foo = 1;
> } catch (Exception e) {
> continue;
> }
> }
> }
> }
Ok, with this test case I reproduced the problem.
> My apologies for the bad test case. It got scrambled somwhere along the
> way, and this explains why it worked on my home machine as well, since I
> cut and pasted my own incorrect test case. If this code doesn't fail,
> please let me know and I will go ahead and send you my class file. Once
> again, my apologies for wasting your time with the bad test case.
No problem. The most important is that the problem is not reproducable, which means
it can be fixed :-). I am looking at it right now and I'll let you know when I have
something new.
Thanks a lot for your help.
--
Olivier