Summary
When -Dmethod is omitted from the instrument goal, instrument all methods of matching classes.
Motivation
When debugging a class you don't understand, you want to see everything it does — every method call, every return value. Requiring a specific method name forces you to know the API before you can debug it.
Design
-Dmethod becomes optional on jackknife:instrument
- When omitted, the instrument config signals "all methods"
HandlerEnhancer wraps all non-constructor, non-static-initializer methods
- Combines with wildcard
-Dclass for broad instrumentation
Examples
mvn jackknife:instrument -Dclass=org.junit.Assert
mvn jackknife:instrument -Dclass="org.junit.**"
mvn jackknife:instrument -Dclass=com.example.MyService
Acceptance Criteria
Summary
When
-Dmethodis omitted from the instrument goal, instrument all methods of matching classes.Motivation
When debugging a class you don't understand, you want to see everything it does — every method call, every return value. Requiring a specific method name forces you to know the API before you can debug it.
Design
-Dmethodbecomes optional onjackknife:instrumentHandlerEnhancerwraps all non-constructor, non-static-initializer methods-Dclassfor broad instrumentationExamples
Acceptance Criteria
-Dmethodinstruments all methods-Dclasssingle-instrument-granularity