Java: August 2009 Archives

While getting my daily fix of feed, I found this post on javablogs, describing a "bug" that crawled into the code because a design decision.

The problem they actually had was conceptual one, more than technical. The Comparable interface is meant to be implemented if there is an ordering that inherent to the class (ie, numbers, words, days of week, months, seasons). In their case, ordering by name is not inherent to the SelectablePerson class (you may want to sort by any other field in the future).


I'll follow with another Java quirk in my next post.


Soronthar's Software Development Diary

About this Archive

This page is an archive of entries in the Java category from August 2009.

Java: January 2008 is the previous archive.

Find recent content on the main index or look in the archives to find all content.