[jboss-jira] [JBoss JIRA] (AS7-3222) RESTEasy: Ambiguity constructors of Resource aren't reported

Weinan Li (Commented) (JIRA) jira-events at lists.jboss.org
Mon Jan 9 05:24:09 EST 2012


    [ https://issues.jboss.org/browse/AS7-3222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12654544#comment-12654544 ] 

Weinan Li commented on AS7-3222:
--------------------------------

Hi Pavel, could you please paste your java class with the ambiguous constructors so I could investigate on this one? Thanks!
                
> RESTEasy: Ambiguity constructors of Resource aren't reported
> ------------------------------------------------------------
>
>                 Key: AS7-3222
>                 URL: https://issues.jboss.org/browse/AS7-3222
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: REST
>    Affects Versions: 7.1.0.CR1b
>            Reporter: Pavel Janousek
>            Assignee: Weinan Li
>            Priority: Blocker
>
> Section 3.1.2. of JAX-RS specs says:
> <cite>
> A public constructor MAY include parameters annotated with one of the following: @Context, @Header-Param, @CookieParam, @MatrixParam, @QueryParam or @PathParam. However, depending on the resource class lifecycle and concurrency, per-request information may not make sense in a constructor. If more than one public constructor is suitable then an implementation MUST use the one with the most parameters. +Choosing amongst suitable constructors with the same number of parameters is implementation specific, implementations SHOULD generate a warning about such ambiguity.+
> <cite>
> Actual behavior is that none of warning is generated and some of suitable constructor is chosen silently. This is against implemented specs.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list