Hi all,

For those of you who follow such things, Sun has just released Java 1.5,
which will be
officially known as Java 5.

It seems Inline::Java works properly with Java 5, but one thing is worth
mentionning:

When you install Inline::Java and run the test suite with Java 5, you will
see warnings
like these when compiling:

     Note: Some input files use unchecked or unsafe operations.
     Note: Recompile with -Xlint:unchecked for details.

     Note: types6.java uses unchecked or unsafe operations.
     Note: Recompile with -Xlint:unchecked for details.

If you follow the suggestion and compile with "-Xlint:unchecked" (you can
easily do this
for the test suite by setting the PERL_INLINE_JAVA_EXTRA_JAVAC_ARGS env.
var. to
 "-Xlint:unchecked"), you will see warnings like this one:

     types6.java:15: warning: [unchecked] unchecked call to put(K,V) as a
member of the
     raw type java.util.HashMap
                  hm.put(k, v) ;

This simply means the the code uses "raw types" instead of the new
recommended generics (i.e .templates). The use of generics enforces the
type of elements you place
in collection-type elements.

Since I want the code to work with older versions of Java as well, I do
not plan on
changing the code to remove these warnings.

Just thought I would try to shed some light on the situation.


Patrick

Reply via email to