An approach for code annotation validation with metadata location transparency

Date
2016Author
de Siqueira, Jose Lazaro, Jr. [UNIFESP]
Silveira, Fabio Fagundes [UNIFESP]
Guerra, Eduardo Martins
Type
Trabalho apresentado em eventoISSN
0302-9743Is part of
Computational Science And Its Applications - Iccsa 2016, Pt IvDOI
10.1007/978-3-319-42089-9_30Metadata
Show full item recordAbstract
The use of metadata in software development, specially by code annotations, has emerged to complement some limitations of object-oriented programming. A recent study revealed that a lack of validation on the configured metadata can lead to bugs hard to identify and correct. There are approaches to optimize metadata configuration that add the annotation out of the target code element, such as its definition on the enclosing code element or indirectly inside other annotations. Annotation validation rules that rely on the presence of other annotations are specially hard to perform when it is possible to configure it out of the target element. Available approaches for annotation validation in the literature consider their presence only in the target element. This paper presents a validation of code annotations approach in object-oriented software with location transparency, whereas definitions can occur in different parts of source code related to the target element. An evaluation with a meta-framework supports our hypothesis that the approach is capable of decoupling the annotation location from the validation rules.
Citation
Computational Science And Its Applications - Iccsa 2016, Pt Iv. Cham, v. 9789, p. 422-438, 2016.Keywords
JavaCode Annotation
Metadata
Validation
Framework