Nice TWiki > Doc > UsingJavaFromNice (r1.2 vs. r1.3) TWiki webs:
Dev | Doc | Main | TWiki | Sandbox
Doc . { Changes | Index | Search | Go }
 <<O>>  Difference Topic UsingJavaFromNice (r1.3 - 07 Mar 2003 - AlexGreif)
Deleted:
<
<

nice -> static java method

Deleted:
<
<

Deleted:
<
<

nice -> static java function

Deleted:
<
<

javanice
Added:
>
>

Deleted:
<
<


Changed:
<
<

List getList() = native List Foo.getList();

>
>

List<String> getList() = native List Foo.getList();

Deleted:
<
<

Deleted:
<
<

I'm not sure why you distinguished methods (returning void?) and functions. I think the point here is that if the Java code uses parameterized types (like List, Collection, Map, ...), then you need a native declaration in Nice to specify their precise type.

Changed:
<
<

Note: your List was printed in Wiki as List, because was interpreted as a tag. I did not understand a thing at first because of that, and thought there was a bug in the compiler! :-) I added verbatim in addition to pre to solve this problem. Isn't there a simpler way, like a tag? Could be define that in TWiki?

>
>

ALERT! If the Java code uses parameterized types (like List, Collection, Map, ...), then you need a native declaration in Nice to specify their precise type.

I added verbatim in addition to pre to solve this problem. Isn't there a simpler way, like a <code> tag? Could be define that in TWiki?

Added:
>
>

I think wiki cannot handle this -- AlexGreif


Topic UsingJavaFromNice . { View | Diffs | r1.3 | > | r1.2 | > | r1.1 | More }
Revision r1.2 - 07 Mar 2003 - 13:23 GMT - DanielBonniot
Revision r1.3 - 07 Mar 2003 - 14:45 GMT - AlexGreif
Copyright © 1999-2003 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback.