Sciweavers

ASWEC
2010
IEEE

On the Use of Properties in Java Applications

13 years 5 months ago
On the Use of Properties in Java Applications
—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...
Markus Lumpe, Samrian Mahmud, Rajesh Vasa
Added 05 Dec 2010
Updated 05 Dec 2010
Type Conference
Year 2010
Where ASWEC
Authors Markus Lumpe, Samrian Mahmud, Rajesh Vasa
Comments (0)