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

org.apache.sling.jcr.resource.JcrPropertyMap does not expose ValueMap interface

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

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • JCR Resource 2.0.6
    • JCR Resource 2.0.8
    • JCR
    • None
    • using org.apache.sling.jcr.resource of revision R891543

    Description

      when trying to create a JcrPropertyMap in a jsp i get:

      An error occurred at line: 1 in the generated java file
      The type org.apache.sling.jcr.resource.internal.JcrPropertyMap cannot be resolved. It is indirectly referenced from required .class files

      An error occurred at line: 33 in the jsp file: /apps/foo/center.jsp
      Type mismatch: cannot convert from JcrPropertyMap to ValueMap
      null

      i guess the reason is that only the internal JcrPropertyMap implements the ValueMap interface, but ont the public one.

      Attachments

        Activity

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

          People

            cziegeler Carsten Ziegeler
            tripod Tobias Bocanegra
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment