JiveJdon Community Forums
在线355人   Home   论坛   培训咨询   精华   查搜   注册   登陆
首页 » 论坛 » J2EE/JavaEE/JEE/EJB/JSF等技术讨论
???en_US.forumThreadPrev.name??? 上一主题
  Go back to the topic 返回本主题   Go back to the topic listing返回主题列表
???en_US.forumThreadNext.name??? 下一主题
这个主题共有 0 回复 / 1 页 [ ]  发表新帖子  回复该主题贴
wqy518

悄悄话
发表文章: 5
注册时间: 2004年01月19日 10:54
jdk 源码的一个BUG,大家来看看 2004年03月20日 20:58 本帖网址 发送到手机 回复
Runtime类的下面这个方法:

public Process exec(String command, String envp[], File dir)
throws IOException {
int count = 0;
String cmdarray[];
StringTokenizer st;

if (command == "")
throw new IllegalArgumentException("Empty command");

st = new StringTokenizer(command);
count = st.countTokens();

cmdarray = new String[count];
//上面已经取过了,为什么重取一次,而且count值没有用????
st = new StringTokenizer(command);
count = 0;
while (st.hasMoreTokens()) {
cmdarray[count++] = st.nextToken();
}
return exec(cmdarray, envp, dir);
}

不知大家的jdk源码是不是这样得?我的好像是1.41版的
这个主题有 0 回复 / 1 页 [ ]
???en_US.forumThreadPrev.name??? 上一主题
  Go back to the topic 返回本主题   Go back to the topic listing返回主题列表    返回页首返回页首
???en_US.forumThreadNext.name??? 下一主题
google yahoo 新浪ViVi 365Key网摘 天极网摘 CSDN网摘 添加到百度搜藏 POCO网摘 博采网摘
热点TAG: AOP cache DDD EJB 集群 设计模式 Hibernate IOC JiveJdon OO RBAC Spring Struts
查询本论坛内 回复超过的热门帖子
快速发表回复
标题
 
粗体 斜体 下划线 插入图片 插入代码 插入url链接 插入附件
内容
 

手机阅读 add to google add to yahoo
解惑之道在J道 ,打造中国最具影响力的的企业软件社区
OpenSource JIVEJDON v3.0 Powered by JdonFramework Code © 2002-08 jdon.com

anti spam