Fixed a compareTo bug.
Remove unsupported-exceptions.