Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/04/2006, 08:14
ehpspsps
 
Fecha de Ingreso: abril-2006
Mensajes: 2
Antigüedad: 18 años, 1 mes
Puntos: 0
Warning al compilar con 5.0 en vez de 1.4

Tengo un proyecto ej jbuilder con jdk 1.4 cuando compilo desde la línea de comandos con la versión 5.0 (si añado la versión 5.0 al jbuilder no me funciona, creo algún proyecto y falla) me dice que recompile con -Xlint y me da unos warning. Desde la version 1.4 no da nada y funciona bien. Desde la 5.0 de los warning y funciona bien. Alguien sabe como se soluciona...

Un saludo.

.\lengprog\ExampleFileFilter.java:197: warning: [unchecked] unchecked call to pu
t(K,V) as a member of the raw type java.util.Hashtable
filters.put(extension.toLowerCase(), this);
^
.\lengprog\listaConocidos.java:17: warning: [serial] serializable class lengprog
.listaConocidos has no definition of serialVersionUID
public class listaConocidos
^
.\lengprog\Marco.java:88: warning: [unchecked] unchecked call to add(E) as a mem
ber of the raw type java.util.LinkedList
lst.add(new String(st.nextToken()));
^
.\lengprog\Marco.java:131: warning: [unchecked] unchecked call to add(E) as a me
mber of the raw type java.util.LinkedList
lstNpLeidos.add(new Npropio(true, stTmp)); //A±adimos el anterior a
la lista
^
.\lengprog\Marco.java:143: warning: [unchecked] unchecked call to add(E) as a me
mber of the raw type java.util.LinkedList
lstNpLeidos.add(new Npropio(true, stTmp)); // Crea un nuevo elemento
de la lista
^
.\lengprog\Marco.java:202: warning: [unchecked] unchecked call to add(E) as a me
mber of the raw type java.util.LinkedList
lstNpLeidos.add(new Npropio(true, strTmp));
^
.\lengprog\Marco.java:528: warning: [unchecked] unchecked call to add(E) as a me
mber of the raw type java.util.LinkedList
lstNpLeidos.add(new Npropio(true, stTmp)); // Crea un nuevo elemento
de la lista
^
.\lengprog\Marco.java:579: warning: [deprecation] show() in java.awt.Window has
been deprecated
editor.show();
^
.\lengprog\Marco.java:24: warning: [serial] serializable class lengprog.Marco ha
s no definition of serialVersionUID
public class Marco
^
9 warnings