Expected behavior with -esa

Stuart Marks stuart.marks at oracle.com
Thu Nov 24 01:01:24 UTC 2011


FYI this bug is visible in the open at

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5066854

s'marks

On 11/23/11 12:04 PM, Brandon Passanisi wrote:
> I'm currently looking at a bug report:
> http://monaco.sfbay.sun.com/detail.jsf?cr=5066854 which describes an issue
> where a simple program was run with the option -esa to enable system
> assertions. The bug author describes that, in the provided sample code, an
> AssertionError occurs when the spec says a MissingFormatArgumentException
> should be thrown. When running the sample program without the -esa option, a
> MissingFormatArgumentException is thrown. It seems to me that it shouldn't be
> unexpected to see an AssertionError when -esa is used, instead of the
> MissingFormatArgumentException. In fact, this behavior appears to not be
> limited to this particular test case, and can possibly occur with other APIs if
> an AssertionError is seen before an expected exception. I was hoping to see
> some sort of explanation in the evaluation or comments section of the bug
> report, but the bug report was only updated with references about how the bug
> was filed too late for a release. Can someone clarify if this behavior with
> -esa is actually a bug?
>
> Thanks.



More information about the core-libs-dev mailing list