首页> 外文期刊>Information and software technology >A class loading sensitive approach to detection of runtime type errors in component-based Java programs
【24h】

A class loading sensitive approach to detection of runtime type errors in component-based Java programs

机译:一种类加载敏感方法,用于检测基于组件的Java程序中的运行时类型错误

获取原文
获取原文并翻译 | 示例
       

摘要

Context: The employment of class loaders in component-based Java programs may introduce runtime type errors, which may happen at any statement related to class loading, and may be wrapped into various types of exceptions raised by JVM. Traditional static analysis approaches are inefficient to detect them. Objective: Our previous work proposed a semi-static detection work based on points-to analysis to detect such runtime type errors. In this paper, we extend previous work by referencing the information obtained from class loading to detect runtime type errors in component-based Java programs, without the need to running them. Method: Our approach extends the typical points-to analysis by gathering the behavior information of Java class loaders and figuring out the defining class loader of the allocation sites. By doing that, we obtain the runtime types of objects a reference variable may point to, and make use of such information to facilitate runtime type error detecting. Results: Results on four case studies show that our approach is feasible, can effectively detect runtime errors missed by traditional static checking methods, and performs acceptably in both false negative test and scalability test.
机译:上下文:在基于组件的Java程序中使用类加载器可能会引入运行时类型错误,该错误可能发生在与类加载相关的任何语句上,并且可能包装为JVM引发的各种类型的异常。传统的静态分析方法无法检测到它们。目的:我们先前的工作提出了一种基于指向分析的半静态检测工作,以检测此类运行时类型错误。在本文中,我们通过引用从类加载获得的信息来扩展先前的工作,以检测基于组件的Java程序中的运行时类型错误,而无需运行它们。方法:我们的方法通过收集Java类加载器的行为信息并找出分配站点的定义类加载器,扩展了典型的分析方法。通过这样做,我们获得了参考变量可能指向的对象的运行时类型,并利用这些信息来促进运行时类型错误的检测。结果:四个案例研究的结果表明,我们的方法是可行的,可以有效地检测到传统静态检查方法遗漏的运行时错误,并且在假阴性测试和可伸缩性测试中都可以接受。

著录项

  • 来源
    《Information and software technology》 |2014年第9期|1076-1085|共10页
  • 作者单位

    Technology Center of Software Engineering, Institute of Software, Chinese Academy of Sciences, Beijing 100190, China;

    Technology Center of Software Engineering, Institute of Software, Chinese Academy of Sciences, Beijing 100190, China,Graduate University, Chinese Academy of Sciences, Beijing 100190, China;

    Technology Center of Software Engineering, Institute of Software, Chinese Academy of Sciences, Beijing 100190, China,Graduate University, Chinese Academy of Sciences, Beijing 100190, China;

    Technology Center of Software Engineering, Institute of Software, Chinese Academy of Sciences, Beijing 100190, China,State Key Laboratory of Computer Science, Beijing 100190, China;

    Technology Center of Software Engineering, Institute of Software, Chinese Academy of Sciences, Beijing 100190, China,State Key Laboratory of Computer Science, Beijing 100190, China;

  • 收录信息
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

    Runtime error detection; Class loading; Component-based;

    机译:运行时错误检测;类加载;基于组件;

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号