Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
In ExceptionTests, testEmptyStream() and testEmptyStream2() can never fail. They both do something like this:
try
{ ... fail("Error should be thrown"); }catch (Error e)
{ ... }JUnit's fail() method throws a subclass of Error, so it is impossible for this to fail. The exception that is expected from the DAS runtime in these tests is also an Error, so the runtime will need to be modified to fix this. The DAS should not be using Error anyway, as it is intended for abnormal and unrecoverable errors.