Subject: RE: Part 2 for the Homework exercise
From: Karl Lieberherr (firstname.lastname@example.org)
Date: Thu Oct 24 2002 - 09:42:16 EDT
thank you for pointing this out. We certainly don't want our checker
to throw an exception.
Pengcheng: what is the best way to repair the program?
> -----Original Message-----
> From: Eric Robinson [mailto:email@example.com]
> Sent: Thursday, October 24, 2002 7:46 AM
> To: com3205
> Subject: Part 2 for the Homework exercise
> The sample solutions that we got for part 3 on the previous
> homework have a
> bug of sorts in them. Since I spent an hour or two looking over my code
> trying to figure out what was wrong with it, only to discover the checker
> was at fault, I figured I'd sent out an email. In some cases you
> may get an
> exception fault, mine was occuring after a Foo.bar() test. The reason for
> this is that the checker still tries to check contains for static calls,
> which have null targets. In this case, the contains function in supplier
> can throw an exception because of a null pointer.
This archive was generated by hypermail 2b28 : Thu Oct 24 2002 - 09:39:08 EDT