wiki:PRO_LIB_CORE_MISUSE_DETECTION_R0

Version 4 (modified by niki, 16 years ago) (diff)

--

Error: Macro BackLinksMenu(None) failed
compressed data is corrupt

Error: Macro TicketQuery(summary=TASK_NAME_HERE, format=table, col=summary|owner|status|type|component|priority|effort|importance, rows=description|analysis_owners|analysis_reviewers|analysis_score|design_owners|design_reviewers|design_score|implementation_owners|implementation_reviewers|implementation_score|test_owners|test_reviewers|test_score|) failed
current transaction is aborted, commands ignored until end of transaction block

Analysis

Overview

The aim of this task is to identify irregular uses of Properties Library that could be either frequent or hard to find. An example of irregular use is :

public RwProp<Integer> fish() {

return getBean().makeValueProp("fish", Integer.class, complextMethodToComputeFish());

} because the third argument must be a constant.

Task requirements

  1. to write a list with irregular uses - at least 5
  2. Add some checks, asserts or something else to protect from irregular uses
  3. Write a documentation - " This method must work only with that kind of arguments"
  4. Make tests, which identify irregular uses.

Task result

code

Implementation idea

Prolib is a complex library. It is easy to use it irregular . It is hard to find the irregular uses,

so it must have lots of conversations between teams. There is some ways to protect from irregular uses :

  1. using a compilator
  1. using exceptions
  1. write a documentation about this method, how it is working and what kind of arguments it is using.

none

How to demo

Working tests, which identify irregular uses.

Design

Implementation

(Implementation results should be described and linked here (from the wiki or the repository))

Testing

Comments

(Write comments for this or later revisions here.)