Clarification Parameter.getName(…)
Oliver Gierke
ogierke at gopivotal.com
Wed Jun 5 04:28:44 PDT 2013
Hi all,
the Parameter class introduced in Java 8 seems to return "arg0" for a call to getName(), even if the parameter name is not available in the bytecode. This makes it impossible to discover parameter names not being present in the bytecode and potentially taking further action in case names cannot be resolved. Does it make sense to return an Optional<String> to indicate this case?
Will parameter names be available for interface methods as well? Currently they cannot be resolved.
Cheers,
Ollie
--
/**
* @author Oliver Gierke - Senior Member Technical Staff
*
* @param email ogierke at gopivotal.com
* @param phone +49-151-50465477
* @param fax +49-351-418898439
* @param skype einsdreizehn
* @see http://www.olivergierke.de
*/
More information about the jdk8-dev
mailing list