From: Arno P. <ar...@pu...> - 2010-07-11 11:47:25
|
there are always trait-offs when you map from one platform to another. The efficiency of using categories comes with the downside you've described. We are currently working on cross-compiling the original JRE classes from OpenJDK. For one, it would give us instant 100% compatibility and the issues you have described would also be resolved. Note that this is ongoing work and will take some time to complete. Arno On 7/7/10 7:31 PM, bar...@ao... wrote: > > I think that having java_util_ArrayList.m be a category on > NSMutableArray is a clever use of categories, but wouldn't encapsulation > generally be a more flexible option? One potential issue I see with the > category approach is that since java_util_ArrayList.m and > java_util_LinkedList.m are both categories on NSMutableArray, what > happens if the client java code relies on checking the kind of the list > using reflection? Won't java_util_ArrayList and java_util_LinkedList > then be indistinguishable from each other at runtime? > > The same goes for the other classes where categories are used: String, > StringBuffer, HashMap/Set, URI/URL, etc. > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > > > > _______________________________________________ > xmlvm-users mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlvm-users |