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

Carsten Ziegeler commented on SLING-1253:
-----------------------------------------

The new operation can't instantiate the object as it is running inside the 
classloader of the jsp. This classloader has no access to the private super 
class. Therefore instantiation fails.

> org.apache.sling.jcr.resource.JcrPropertyMap does not expose ValueMap 
> interface
> -------------------------------------------------------------------------------
>
>                 Key: SLING-1253
>                 URL: https://issues.apache.org/jira/browse/SLING-1253
>             Project: Sling
>          Issue Type: Bug
>          Components: JCR
>    Affects Versions: JCR Resource 2.0.6
>         Environment: using org.apache.sling.jcr.resource of revision R891543
>            Reporter: Tobias Bocanegra
>            Assignee: Carsten Ziegeler
>             Fix For: JCR Resource 2.0.8
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to