I recently uncovered a bug that troubled me for about 30 minutes. This bug was introduced in the Javaconfig framework, as I was extending support for more overloaded methods by "copying the pattern". But it proved that in this case, following a pattern does not always work.
Inductive reasoning states that if element 1 is the same as 2 and 3 and 4 and ... n, element n+1 will most probably be the same as well. However inductive reasoning is rather evil when writing software as it is not mathematically sound.
Here is the code - spot the problem:
Recent comments