Leave it
所在版块:技术の宅 发贴时间:2006-04-07 14:09

用户信息
复制本帖HTML代码
高亮: 今天贴 X 昨天贴 X 前天贴 X 
this warning message just shows that compiler cannot assure correctness of this casting operation as clone() method returns type of object.

It is really programmer's responsibility to avoid any casting failure.
.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!

Put your OWN COOL signature here!
 相关帖子 我要回复↙ ↗回到正文
[java] how to cast after clone()? 蚂蚁   (317 bytes , 869reads )
1.5的东东比1.4变了好多,搞的连java也不会写了^_^ 门中木   (0 bytes , 185reads )
try Vector<String> b = new Vector<String>(a); 绿竹幽径   (51 bytes , 387reads )
有一点点不一样 吴永铮   (134 bytes , 256reads )
能解释一下deep clone and shallow clone 么? icky   (0 bytes , 209reads )
Shallow clone 抽烟看球   (97 bytes , 212reads )
is it similar to copy pointer and copy objects in C? icky   (0 bytes , 228reads )
I didnt make my statement clear enuf 抽烟看球   (266 bytes , 213reads )
so shallow is just assign a reference , am I right 门中木   (0 bytes , 264reads )
copy object for container, copy referrence for contained object 抽烟看球   (0 bytes , 189reads )
我试了,第三个可以啊 吴永铮   (470 bytes , 292reads )
多谢!第三个是可以,不过 蚂蚁   (84 bytes , 249reads )
Leave it 抽烟看球   (212 bytes , 230reads )
总是觉得compile之后还有一行字,看起来实在是很不爽! 蚂蚁   (0 bytes , 235reads )
what is Vector<A> for? 逃课专家   (9 bytes , 241reads )
就是说这个vector里面放的都是A这个class的object 蚂蚁   (0 bytes , 289reads )