truedeity / unitsofmeasure

Automatically exported from code.google.com/p/unitsofmeasure
0 stars 0 forks source link

IncommensurableException should be a checked exception #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In JSR-275, the exception throw by Unit.getConverterToAny(Unit<?>) was a 
checked exception, at the opposite of Unit.getConverterTo(Unit<Q>). This 
checked exception was considered an important safety feature, and one reason 
for having two methods ("getConverterTo", "getConverterToAny"): one is safe, 
the other is not safe and the checked exception make that clear.

However in the unitofmeasurement.org API, the exception has been made 
unchecked. It should be reverted back to a checked exception.

Attached is the SVN patch to apply.

Original issue reported on code.google.com by martdesr...@gmail.com on 18 Jan 2011 at 6:10

Attachments:

GoogleCodeExporter commented 9 years ago
Has that patch been applied already?

Original comment by werner.k...@gmail.com on 30 Apr 2011 at 3:54

GoogleCodeExporter commented 9 years ago

Original comment by werner.k...@gmail.com on 1 Nov 2011 at 12:34

GoogleCodeExporter commented 9 years ago

Original comment by werner.k...@gmail.com on 1 Jan 2013 at 7:18