An attribute-grammar framework for specifying the accessibility in Java']Java programs

被引:0
|
作者
Chan, JT [1 ]
Yang, W [1 ]
机构
[1] Natl Tsing Hua Univ, Dept Informat & Comp Sci, Hsinchu 300, Taiwan
关键词
access modifiers; attribute grammars; !text type='Java']Java[!/text; object-oriented programming;
D O I
10.1016/S0096-0551(01)00021-2
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The three access modifiers-public, protected, and private-control the accessibility of the members of a type in the Java programming language. Furthermore, the accessibility may be transmitted along the two structures-package structure and inheritance structure. It is difficult to identify the weaknesses of the access modifiers from the informal semantics stated in the language manual. We develop a formal framework for specifying the accessibility in Java programs based on attribute grammars. With the help of this framework, we found several situations in the language specification that are irregular or counter-intuitive or ambiguous. These situations may confuse the programmers and hence may create weaknesses in Java programs. (C) 2002 Elsevier Science Ltd. All rights reserved.
引用
收藏
页码:203 / 235
页数:33
相关论文
共 50 条
  • [1] Specifying subtypes in Safety Critical Java']Java programs
    Haddad, Ghaith
    Leavens, Gary T.
    [J]. CONCURRENCY AND COMPUTATION-PRACTICE & EXPERIENCE, 2013, 25 (16): : 2290 - 2306
  • [2] Attribute grammar-based language extensions for Java']Java
    Van Wyk, Eric
    Krishnan, Lijesh
    Bodin, Derek
    Schwerdfeger, August
    [J]. ECOOP 2007 - OBJECT-ORIENTED PROGRAMMING, PROCEEDINGS, 2007, 4609 : 575 - +
  • [3] Specifying and checking method call sequences of Java']Java programs
    Cheon, Yoonsik
    Perumandla, Ashaveena
    [J]. SOFTWARE QUALITY JOURNAL, 2007, 15 (01) : 7 - 25
  • [4] JayHorn: A Framework for Verifying Java']Java programs
    Kahsai, Temesghen
    Rummer, Philipp
    Sanchez, Huascar
    Schaf, Martin
    [J]. COMPUTER AIDED VERIFICATION, (CAV 2016), PT I, 2016, 9779 : 352 - 358
  • [5] A Framework for Debugging Java']Java Programs in a Bytecode
    Soomro, Safeeullah
    Belgaum, Mohammad Riyaz
    Alansari, Zainab
    Miraz, Mahdi H.
    [J]. 2018 INTERNATIONAL CONFERENCE ON COMPUTING, ELECTRONICS & COMMUNICATIONS ENGINEERING (ICCECE), 2018, : 317 - 322
  • [6] A Comprehensive Approach to Naming and Accessibility in Refactoring Java']Java Programs
    Schaefer, Max
    Thies, Andreas
    Steimann, Friedrich
    Tip, Frank
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2012, 38 (06) : 1233 - 1257
  • [7] A framework of reachability testing for Java']Java multithread programs
    Li, SQ
    Chen, HY
    Sun, YX
    [J]. 2004 IEEE INTERNATIONAL CONFERENCE ON SYSTEMS, MAN & CYBERNETICS, VOLS 1-7, 2004, : 2730 - 2734
  • [8] ATTRIBUTE-GRAMMAR INTERPRETER FOR INEXACT REASONING
    PANAYIOTOPOULOS, T
    PAPAKONSTANTINOU, G
    SGOUROS, NM
    [J]. INFORMATION AND SOFTWARE TECHNOLOGY, 1990, 32 (05) : 347 - 356
  • [9] Specifying and checking method call sequences of Java programs
    Yoonsik Cheon
    Ashaveena Perumandla
    [J]. Software Quality Journal, 2007, 15 : 7 - 25
  • [10] A Framework for the Cryptographic Verification of Java']Java-like Programs
    Kuesters, Ralf
    Truderung, Tomasz
    Graf, Juergen
    [J]. 2012 IEEE 25TH COMPUTER SECURITY FOUNDATIONS SYMPOSIUM (CSF), 2012, : 198 - 212