Topic: 这是什么:Recompile with -Xlint:unchecked for details. |
Print this page |
1.这是什么:Recompile with -Xlint:unchecked for details. | Copy to clipboard |
Posted by: qileroro Posted on: 2005-03-29 16:42 照书上的例子做编译不成功,显示出: 有没有人解释一下? Note: PrintingContainers.java uses unchecked or unsafe operations.例子的源代码是: import java.util.*; |
2.Re:这是什么:Recompile with -Xlint:unchecked for details. [Re: qileroro] | Copy to clipboard |
Posted by: cwcjava Posted on: 2005-03-29 16:51 那那代码我运行了啊 每问题啊 这是输出结果: [dog, dog, cat] [dog, cat] {dog=Spot, cat=Rags} 我的QQ是:181413517 有问题再一起讨论啊 |
3.Re:这是什么:Recompile with -Xlint:unchecked for details. [Re: qileroro] | Copy to clipboard |
Posted by: why Posted on: 2005-03-29 17:52 >javac -X |
4.Re:这是什么:Recompile with -Xlint:unchecked for details. [Re: qileroro] | Copy to clipboard |
Posted by: qileroro Posted on: 2005-03-30 14:18 我加了-Xlint参数,不行,看下面的错误,我用的是JDK1.5 ,请问是怎么回事呢? PrintingContainers.java:16: warning: [unchecked] unchecked call to put(K,V) as a member of the raw type java.util.Map m.put("cat","Rags"); ^ 6 warnings |
5.Re:这是什么:Recompile with -Xlint:unchecked for details. [Re: qileroro] | Copy to clipboard |
Posted by: why Posted on: 2005-03-30 20:48 qileroro wrote: these are warnings, not errors. |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |