Closed GoogleCodeExporter closed 8 years ago
Sorry about that. I did not know about the UOMo implementation. Would it be
possible for the UOMo implementation to be corrected?
The problem with declaration such as Map<Unit<?>>, Integer> methods is that it
cannot be overridden to return a more specialized type (this was a mistake).
But using Map<? extends Unit, Integer> instead allows things such as:
class FinancialUnit implements Unit {
Map<? extends FinancialUnit, Integer> getProductUnit() { ... }
// A financial unit is always made up of financial units.
}
Original comment by daute...@gmail.com
on 13 Oct 2010 at 4:08
It's not the only implementation, but hopefully GeoAPI may not be as affected
here?
I understand this is e.g. for extensions by anonymous inner classes like the
example, but especially finacial specs and APIs, even recently discussed Money
JSRs could profit, so in a RC or Milestone stage this shouldn't be too tragic.
Original comment by werner.k...@gmail.com
on 13 Oct 2010 at 6:41
Original comment by werner.k...@gmail.com
on 5 Nov 2010 at 6:27
Original issue reported on code.google.com by
werner.k...@gmail.com
on 13 Oct 2010 at 2:36