On Nov 16, 2010, at 4:19 PM, sebb wrote: > On 17 November 2010 00:06, ralph.goers @dslextreme.com > <ralph.go...@dslextreme.com> wrote: >> I'm not sure why the tool didn't catch it, but a few methods now return >> Map<String, Object> where they previously returned Map. I didn't check for >> generics other than "Map<". > > Surely these are equivalent at run-time? > > Generics are a compile-time feature. >
See http://www.jroller.com/scolebourne/entry/java_generics_migration_compatibility and then take a look at the several changes made to add generics to Comparable. These changes don't seem to be binary compatible. I'm surprised they didn't show up in the report you ran. I've found several other articles that describe how, under certain circumstances, type erasure can result in a different type being used than existed in a prior, non-generified version of the code. I've not fully inspected all teh changes to determine if any of those cases are present. I'm not suggesting we change these. Since we are adopting Java 5 I would prefer to change these now and move forward. Ralph --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org