• DocumentCode
    2508195
  • Title

    On the Use of Properties in Java Applications

  • Author

    Lumpe, Markus ; Mahmud, Samiran ; Vasa, Rajesh

  • Author_Institution
    Fac. of Inf. & Commun. Technol., Swinburne Univ. of Technol., Hawthorn, VIC, Australia
  • fYear
    2010
  • fDate
    6-9 April 2010
  • Firstpage
    235
  • Lastpage
    244
  • Abstract
    When building software systems, developers have to weigh the benefits of using one specific solution approach against the risks and costs of using another one. This process is not random. Certain preferences, architectural styles, and solution domain pressures create systematic biases that we can measure in order to assess their impact on the system being built and the underlying development process itself. In this paper we explore, whether the getter and setter methods in Java give rise to a bias also. Getter and setter methods, called "properties", are perceived commonplace and considered by some as a threat to data encapsulation. However, little empirical evidence exists that can reliably inform us about the real impact of the use of properties in Java. For this reason, we examined 102 open-source Java systems and discovered that properties are employed much more carefully than one might expect. Contrary to some folklore, developers use properties not just to gain access to an object\´s private state, but in a systematic and responsible manner and, in general, consistent with the domain requirements of the developed software system.
  • Keywords
    Java; data encapsulation; public domain software; Java applications; data encapsulation; open-source software; Application software; Australia; Data encapsulation; Gettering; Java; Mechanical factors; Open source software; Software engineering; Software metrics; Software systems; Gini coefficient; decision framing; empirical study; open-source software;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Engineering Conference (ASWEC), 2010 21st Australian
  • Conference_Location
    Auckland
  • ISSN
    1530-0803
  • Print_ISBN
    978-0-7695-4006-1
  • Electronic_ISBN
    1530-0803
  • Type

    conf

  • DOI
    10.1109/ASWEC.2010.35
  • Filename
    5475032