[hibernate-issues] [Hibernate-JIRA] Commented: (BVAL-243) Provide a means for specifying method parameter names

Richard Midwinter (JIRA) noreply at atlassian.com
Thu Nov 10 17:44:19 EST 2011


    [ http://opensource.atlassian.com/projects/hibernate/browse/BVAL-243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44296#comment-44296 ] 

Richard Midwinter commented on BVAL-243:
----------------------------------------

Looks like work on a JDK8 solution for accessing parameter names at runtime is due to start as early as Q1 2012:

http://openjdk.java.net/jeps/118

> Provide a means for specifying method parameter names
> -----------------------------------------------------
>
>                 Key: BVAL-243
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/BVAL-243
>             Project: Bean Validation
>          Issue Type: Sub-task
>          Components: spec-general
>            Reporter: Gunnar Morling
>             Fix For: 1.1
>
>
> Emmanuel wrote:
> {quote}
> On named parameters we have three strategies I think:
> - not address the problem at all and use positional parameters to see what comes up JDK 8's hat (named parameters might not be represented as strings but rather as a typed object)
> - not address the problem in the specification but leave the API open enough for a provider to offer a named parameter friendly API
> - address the problem within the spec (the interface approach seems elegant) hoping for the named parameter to be represented as a String in JDK 8
> I tend to like param0, param1 etc rather than arg0, arg1 but that's aesthetic.
> {quote}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list