M201370367 / beanshell2

Automatically exported from code.google.com/p/beanshell2
0 stars 1 forks source link

return in try block doesn't return #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
int fn() {
    try {
        return 1;
    } finally {}
    print("shouldn't get here, but does");
    2;
}

print(fn());

Original issue reported on code.google.com by fschm...@gmail.com on 8 May 2007 at 6:32

GoogleCodeExporter commented 9 years ago
fixed

Original comment by fschm...@gmail.com on 8 May 2007 at 6:54

GoogleCodeExporter commented 9 years ago
Did you add a unit test for this ?  I'd be happy to add one.
Every core bug we fix should have a unit test to make sure it doesnt regress in 
the 
future.

Original comment by dlee.cal...@gmail.com on 8 May 2007 at 8:54

GoogleCodeExporter commented 9 years ago
I didn't.  Please add one.

Original comment by fschm...@gmail.com on 8 May 2007 at 8:57

GoogleCodeExporter commented 9 years ago
Added a unit test tryreturn.bsh

Original comment by dlee.cal...@gmail.com on 9 May 2007 at 12:37

GoogleCodeExporter commented 9 years ago
milestone=2.1b0

Original comment by pejob...@gmail.com on 25 Feb 2011 at 5:58

GoogleCodeExporter commented 9 years ago

Original comment by pejob...@gmail.com on 20 Oct 2011 at 7:12