tag:blogger.com,1999:blog-5819005.post4376311038555684383..comments2024-03-16T02:17:55.433-07:00Comments on Programming and politics: Java Properties and GenericsAnonymoushttp://www.blogger.com/profile/08698131967747444207noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-5819005.post-52428059990051039672009-06-23T04:45:55.632-07:002009-06-23T04:45:55.632-07:00Use stringPropertyNames() with Java 6. See also ht...Use stringPropertyNames() with Java 6. See also http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6253413Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5819005.post-58930222803430421392008-08-23T12:16:00.000-07:002008-08-23T12:16:00.000-07:00The only reason I can conceive of is to avoid brea...The only reason I can conceive of is to avoid breaking old code that made (improper) use of the fact that Properties was backed with a Map<Object, Object>.<BR/><BR/>The real mystery is why did they create Properties by _inheriting_ from a Map instead of just containing one? Composition allows for all the type-safety one could ask for.<BR/><BR/>Oh well. At this point probably the best we can hope for is that Properties will be deprecated and a new class, done better, will be introduced.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5819005.post-54916380405750797142008-03-06T09:42:00.000-08:002008-03-06T09:42:00.000-08:00this is one of the least explicable Java library w...this is one of the least explicable Java library warts I've ever come across<BR/><BR/>I'd love to know if there is a justifiable reason...Anonymousnoreply@blogger.com