From: <php...@li...> - 2007-05-03 10:20:19
|
Hi, > For my application, most of the methods use > generic as a parameter or Yes, generics (implemented as erasures) are no problem for the bridge. Please see our FAQ for details. Real generics, as proposed by the Rice people (which could be the base of a proper java module system) need some adjustment within the bridge code. > Does the bridge > support generic systax. You probably mean "does the bridge support java generics"? Yes, it does. Does it support a generic syntax? No. Java only supports generics on its surface, the byte code below is still the same as in java 1.4. Implementing a syntax transformer (something like Scheme's define-syntax) for PHP is outside the scope of the PHP/Java Bridge. > Could the syntax be like? > new java("java.util.List<String>"); The syntax is: new java("java.util.List"); Regards, Jost Boekemeier --- php...@li... schrieb: > Hi > For my application, most of the methods use > generic as a parameter or > return value (e.g. List<Foo>). Does the bridge > support generic systax. > If it does, could I have a link to the document? > > Could the syntax be like? > new java("java.util.List<String>"); > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 > express and take > control of your XML. No limits. Just data. Click to > get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > __________________________________ Kennt man wirklich jeden über 3 Ecken? Die Antworten gibt's bei Yahoo! Clever. www.yahoo.de/clever |