Abstract
The reflection technique is used by programs that need to examine or modify the runtime behavior of applications in the Java Virtual Machine. This is a powerful instrument, but its use should bring some concerns related to performance overhead, security problems, exposing the private fields - which are not accessible through non-reflective code, losing benefits of compile-time type checking, reflective code being clumsy and verbose. This paper concentrates upon the performance overhead. Tests were made in order to analyze objects creation and method calls using primitive and reference arguments, both by direct and reflective invocation.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Cantwell Smith, B.: Procedural Reflection in Programming Languages, Department of Electrical Engineering and Computer Science. Massachusetts Institute of Technology, PhD Thesis (1982)
Cantwell Smith, B.: Reflection and semantics in a procedural language. Technical Report MIT-LCS-TR-272. Massachusetts Institute of Technology, Cambridge, Mass. (January 1982)
Java Sun Tutorial
JavaTM Platform, Standard Edition 7 API Documentation
Sobel, J., Friedman, D.: An Introduction to Reflection-Oriented Programming. Indiana University (1996)
Bloch, J.: Effective Java. Addison Wesley (2008)
Sosnoski, D.: Java programming dynamics (2003)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2013 Springer-Verlag Berlin Heidelberg
About this chapter
Cite this chapter
Tudose, C., Odubăşteanu, C., Radu, S. (2013). Java Reflection Performance Analysis Using Different Java Development. In: Dumitrache, L. (eds) Advances in Intelligent Control Systems and Computer Science. Advances in Intelligent Systems and Computing, vol 187. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-32548-9_31
Download citation
DOI: https://doi.org/10.1007/978-3-642-32548-9_31
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-642-32547-2
Online ISBN: 978-3-642-32548-9
eBook Packages: EngineeringEngineering (R0)