Sunday, May 13. 2007An Open Letter to the JSR 310 CommunityTrackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
Rather than the compiler throwing errors I would simply like an official End Of Life program for deprecated methods.
Once an established, tested and familiar alternative exists an official End Of Life should be declared - The End Of Life expresses the Java release at which that element will no longer exist in the API. This could possibly be specified as an argument to the Deprecated annotation for documentation purposes. For example, if java.util.Date were deprecated in 1.7 and during the development of 1.8 the community process deems the adoption of the new APIs to be progressing well it could decide that java.util.Date will no longer appear in 1.9 (probably a tad over-enthusiastic). @Deprecated(endOfLife="1.9") Specifying an explicit End Of Life gives tool developers a healthy sense of urgency and aids in prioritising efforts to move away from deprecated API content. Simplifying the API as the language becomes more complex to learn is crucial to maintaining up-take of java and ensuring that newly skilled developers continue to enter the marketplace.
I'd love that to be true. But what about all the Java programs out there that are expected to run as normal? I'm not sure it is being realistic that we can ever get rid of that stuff...
In some JSR's like the Java EE 'Umbrella' 316, the term 'pruning' is used a lot for those kinds of SDK cleanups.
Until something like that is imaginable, I suggest some kind of Wrapper or translator was a good idea to convert between the 2 APIs. A slightly less known implementation by rather well known people (like Eric Evans or Martin Fowler) covering some aspects of Date and Time has a similar thing in the way of 'toJDKCalendar' which once this JSR was a full part of Java, too may have to be renamed into something like 'toLegacyCalendar' or similar. |
Calendar
QuicksearchArchivesCategoriesBlog AdministrationStatisticsLast entry: 2009-08-22 19:58
224 entries written
31 comments have been made
|
|||||||||||||||||||||||||||||||||||||||||||||||||