Hi Thierry,

Thierry BODHUIN wrote:
I encounter the same exact fact.
The source code of Jini is not at the Java 1.5 compliant level: it uses the keyword "enum" in the com/sun/jini/jeri/internal/runtime/Util.java file as mentioned. It fails also to compile for Java 1.5+ compiler due to varargs parameters methods.

I assume you mean it warns you, because at least javac with the Sun JDK compiles fine and only issue warnings.

But giving to the javac command the source level (-source 1.4) should alleviate the problems you encounter that why
ant set the javac "source parameters" to 1.4.

This is something we should do in the build file(s) anyway as long as we don't lift the minimum requirements for Jini to 1.5 or beyond.
--
Mark

Reply via email to