摘要
提出一种基于类文件的Java运行时异常分析技术。它可在没有Java源代码文件的情况下,直接对类文件进行处理,分析可能抛出的异常信息,并根据分析结果在类文件中添加适当的异常追踪代码。这种处理后的类文件可无缝替换原类文件运行,并在运行中抛出异常时,能够给出详尽的异常分析报告,从而提高技术人员调试和开发的效率。
An analytical technique of Java program runtime exception based on class document is put forward.Without Java source code document, this technique directly handles class document, analyzes all exception information possibly thrown by this class document, and according to the result of analysis, adds appropriate bytecodes to record tracing information in class document. The class document handled by this technique can replace the original class document seamlessly to run. When exceptions are thrown during runtime, it can form a detailed exception analysis report. This technique can make test, debug and development more efficient.
出处
《测控技术》
CSCD
2006年第11期61-63,共3页
Measurement & Control Technology
基金
国家自然科学基金资助项目(60272040)
关键词
Java类文件
运行异常
依赖分析
Java class document
runtime exception
dependency analysis