Quote:
|
Is this code safe envent with the warnings or must i use other slice2java options to avoid this warnings?
|
The generated code is still safe to use. The Java compiler emits a warning because your metadata uses an untyped container (
java.util.ArrayList). You could eliminate this warning by using
java.util.ArrayList<ObjectMetadata> instead. Of course, if you are trying to remain compatible with both Java2 and Java5, then you should leave the metadata as it is and simply ignore the warning when compiling with Java5.
Quote:
|
For use the java-2 mapping is needed to add the --meta java:java2 when compile slice files?
|
Yes, in Ice 3.2.0 the default mapping uses Java5 types; if you want to generate code that is compatible with Java2, you have to specify that metadata.
Take care,
- Mark