对面的高手看过来,看过来呀,看过来

angelleecash 2004-07-28 11:30:43
我的一个程序编译时提示
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
...全文
82 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
Drate 2004-07-29
  • 打赏
  • 举报
回复
呵呵,你的程序是怎么写的呢?把程序贴出来看一看呀。
jackkui 2004-07-29
  • 打赏
  • 举报
回复
提示说没有找到lib目录下的servlet-api.jar文件。
其它的我也没有看出来,你在检查一下你的classpath
看他包括了servlet-api.jar吗

62,615

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧