This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / 求教java问题:今天老师给出了个题目,想请教大家,提示点思路,挺急的,先多谢了。题目有点长,大意如下:
-ckzn(nancy);
2004-10-25
{1054}
(#1947505@0)
-
I think the hardest part is how to do this programmatically, I only know how to do it manually, I do this everyday
-fatbean(青年发明家:零零发);
2004-10-25
(#1947801@0)
-
agree. Prof also said that the hardest part is how to generate template automatically. But no idea about this till now.
-ckzn(nancy);
2004-10-25
(#1947855@0)
-
Creat your own exception extends the exception. throw it when you think there is an error. catch it at the end.
-gman(gman);
2004-10-25
(#1947830@0)
-
?
-ckzn(nancy);
2004-10-25
(#1947866@0)
-
why not use the JNI in your java code or Apache ant1) maybe you can use the JNI in your java code to invoke the java compiler then check the compiler out put for those error...
2) Better to use Apache Ant for those...
-changshan(偷偷乐);
2004-10-25
{167}
(#1947871@0)
-
多谢回复,可能是我的问题没说清楚。我是要把一个没有bug的.java source code变成有bug的faulty code,关键是如何制造faulty code automatically。而不是要debug。
-ckzn(nancy);
2004-10-25
(#1947891@0)
-
My 2 cents
-fatbean(青年发明家:零零发);
2004-10-26
{1238}
(#1948934@0)
-
Great thanks! I just began the research on 'java static code checking/testing' topic. I found an open source tool named PMD on internet. It works like a compiler with its own bug classification & definition.
-ckzn(nancy);
2004-10-26
{668}
(#1949078@0)
-
CodeDom on Java?我只懂 C#,不过对这个题目挺好奇的,所以 google 了一下。在 .NET 平台上,为了做到语言无关性,有一个 class 叫 CodeDom,飞快地看了一下,大致上是把 Code Document Object Model 转换成 C# 或 VB 或 Java 的。如何先把 C# / VB.NET code parse 成 Code DOM 不是件容易的事,但网上也有人给出了 solution。蛮麻烦的。
只是个思路 -- 不知道 java 平台上有没有类似的东东。
-xmlhttprequest(longhorn);
2004-10-26
{349}
(#1949898@0)
-
我的两点建议
-fall_leaf(一叶知秋);
2004-10-27
{857}
(#1950140@0)
-
Cool! They're exactly what I want! Will search more info on internet soon. Great thanks!
-ckzn(nancy);
2004-10-27
(#1950270@0)