arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1408.2607cs.SE
收藏

Java开发人员对兼容性的了解以及为什么这很重要

What Java Developers Know About Compatibility, And Why This Matters

Jens Dietrich, Kamil Jezek, Premek Brada

摘要:

真实世界的程序既不是单一的,也不是静态的--它们是使用平台和第三方库构建的,程序和库都在不断地发展以应对变化的压力。在Java语言的情况下,Java语言和Java虚拟机规范中定义的规则定义了何时库演化是安全的。这些规则区分了三种类型的兼容性-二进制,源代码和行为。我们声称,其中一些规则是违反直觉的,许多开发人员并没有很好地理解。我们提出了一项调查的结果,我们询问开发人员对各种类型的兼容性的理解。414名开发人员回应了我们的调查。我们发现,虽然大多数程序员都熟悉源代码兼容性的规则,但他们通常缺乏有关二进制和行为兼容性规则的知识。当组织从集成构建切换到需要动态链接的技术(如OSGi)时,这可能会产生问题。我们通过研究问题跟踪系统中与链接相关的问题被引用的频率来评估问题的严重性,并发现它们很常见。

英文摘要:

Real-world programs are neither monolithic nor static -- they are constructed using platform and third party libraries, and both programs and libraries continuously evolve in response to change pressure. In case of the Java language, rules defined in the Java Language and Java Virtual Machine Specifications define when library evolution is safe. These rules distinguish between three types of compatibility - binary, source and behavioural. We claim that some of these rules are counter intuitive and not well-understood by many developers. We present the results of a survey where we quizzed developers about their understanding of the various types of compatibility. 414 developers responded to our survey. We find that while most programmers are familiar with the rules of source compatibility, they generally lack knowledge about the rules of binary and behavioural compatibility. This can be problematic when organisations switch from integration builds to technologies that require dynamic linking, such as OSGi. We have assessed the gravity of the problem by studying how often linkage-related problems are referenced in issue tracking systems, and find that they are common.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑