Zur Hauptnavigation wechseln Zur Suche wechseln Zum Hauptinhalt wechseln

Bytecode Analysis for Checking Java Access Modifiers

  • Andreas Müller

Publikation: Beitrag in Buch/Bericht/Konferenzband › Konferenzbeitrag

Abstract

When compiling a Java program, too restrictive access modifiers immediately lead to compilation errors. However, developers do not even get informed, if an access modifier could be more restrictive.We developed a tool called AccessModifierAnalyzer (AMA) that reports insufficiently restrictive Java access modifiers based on a static bytecode analysis. AMA analyses fields and methods and reports on visibility modifiers, the static modifier, and the final modifier. It can either be used as a stand-alone application, as part of an Apache Ant script, or as a NetBeans plug-in. In this paper, we motivate the need for a report on insufficiently restrictive access modifiers and give an overview of the architecture and usage of AMA.
OriginalspracheEnglisch
TitelProceedings of the Work-in-Progress Session at the 8th International Conference on the Principles and Practice of Programming in Java (PPPJ 2010)
VerlagCEUR-WS
Seitenumfang4
Band692
PublikationsstatusVeröffentlicht - 2010

Wissenschaftszweige

  • 102 Informatik
  • 102015 Informationssysteme
  • 102027 Web Engineering

JKU-Schwerpunkte

  • Computation in Informatics and Mathematics

Dieses zitieren