You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Oliver Lietz (JIRA)" <ji...@apache.org> on 2016/02/24 11:15:18 UTC

[jira] [Commented] (SLING-5555) Make error message more explicit when a @Source annotation contains an invalid source identifier

    [ https://issues.apache.org/jira/browse/SLING-5555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15162770#comment-15162770 ] 

Oliver Lietz commented on SLING-5555:
-------------------------------------

you should print a shirt for adaptTo() with issue on it ;)

> Make error message more explicit when a @Source annotation contains an invalid source identifier
> ------------------------------------------------------------------------------------------------
>
>                 Key: SLING-5555
>                 URL: https://issues.apache.org/jira/browse/SLING-5555
>             Project: Sling
>          Issue Type: Improvement
>          Components: Extensions
>    Affects Versions: Sling Models Impl 1.2.6
>            Reporter: Stefan Seifert
>            Assignee: Stefan Seifert
>            Priority: Minor
>              Labels: models
>             Fix For: Sling Models Impl 1.2.8
>
>
> it is possible to use the @Inject annotation in combination with @Source and specifying a injection source via its identifier as string.
> if this string is invalid currently a NPE is thrown internally and logged as warning. instead of the NPE another exception should be thrown including an error message containing the invalid source id to hint what is the real problem.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)