对面的高手看过来,看过来呀,看过来
我的一个程序编译时提示
Note: StudentInforSystem.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
不知道是怎么回事,可是我的程序运行时非常正常
于是我加了-Xlint编译结果出了一对WARNING 高手帮我看看,是很多,也很乱,不过好多是重复的,请你耐心帮俺看一下,小女子先谢过了
warning: [path] bad path element ".C:\Program Files\Apache Software Foundation\T
omcat 5.0\common\lib\servlet-api.jar": no such file or directory
StudentInforSystem.java:7: warning: [serial] serializable class StudentInforSyst
em has no definition of serialVersionUID
public class StudentInforSystem extends JFrame implements ActionListener
^
StudentInforSystem.java:113: warning: [serial] serializable class JTextFieldPane
l has no definition of serialVersionUID
class JTextFieldPanel extends JPanel
^
StudentInforSystem.java:507: warning: [unchecked] unchecked call to addElement(E
) as a member of the raw type java.util.Vector
ColumnHe
ads.addElement(rsmd.getColumnName(i));
^
StudentInforSystem.java:512: warning: [unchecked] unchecked call to addElement(E
) as a member of the raw type java.util.Vector
Data.add
Element(getRecord(result,rsmd));
^
StudentInforSystem.java:545: warning: [unchecked] unchecked call to addElement(E
) as a member of the raw type java.util.Vector
Record.addElement(result.getString(i));
^
StudentInforSystem.java:550: warning: [unchecked] unchecked call to addElement(E
) as a member of the raw type java.util.Vector
Record.addElement(result.getLong(i));
^
StudentInforSystem.java:1047: warning: [unchecked] unchecked call to addElement(
E) as a member of the raw type java.util.Vector
ColumnHeads.addElement(rsmd.getColumnName(i));
^
StudentInforSystem.java:1055: warning: [unchecked] unchecked call to addElement(
E) as a member of the raw type java.util.Vector
Data.addElement(getRecord(result,rsmd));
^
StudentInforSystem.java:1100: warning: [unchecked] unchecked call to addElement(
E) as a member of the raw type java.util.Vector
Record.addElement(result.getString(i));
^
StudentInforSystem.java:1105: warning: [unchecked] unchecked call to addElement(
E) as a member of the raw type java.util.Vector
Record.addElement(result.getLong(i));
^
11 warnings