Part 2 for the Homework exercise


Subject: Part 2 for the Homework exercise
From: Eric Robinson (tivadar@ccs.neu.edu)
Date: Thu Oct 24 2002 - 07:46:18 EDT


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.

Eric



This archive was generated by hypermail 2b28 : Thu Oct 24 2002 - 07:45:20 EDT