private String [ ] getParameterNames ( Method method ) { if ( notSupportParameterNameDiscoverer ) { return null ; } else { try { ParameterNameDiscoverer parameterNameDiscoverer = new DefaultParameterNameDiscoverer ( ) ; // only support // from spring4 String [ ] strs = parameterNameDiscoverer . getParameterNames ( method ) ; if ( strs == null ) { notSupportParameterNameDiscoverer = true ; } return strs ; } catch ( NoClassDefFoundError e ) { notSupportParameterNameDiscoverer = true ; return null ; } } }
DefaultParameterNameDiscoverer is supported spring 4 . 0