Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-3863

Sling Models: Injections fails for optional primitive types without default values

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      Sling models injections for interfaces and constructor fails if:

      • the type to inject is a primitive type
      • its marked as optional
      • and there is no value to inject

      in this case it is tried to inject null which fails because null is not allowed for a primitive.

      patch attached.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            justinedelson Justin Edelson
            sseifert Stefan Seifert
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment