You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Kennard Consulting (JIRA)" <ji...@apache.org> on 2012/07/14 02:48:34 UTC

[jira] [Commented] (JEXL-138) Erroneous "inaccessible or unknown property" warning

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

Kennard Consulting commented on JEXL-138:
-----------------------------------------

Terrific! Thanks Henri. I look forward to the next release.
                
> Erroneous "inaccessible or unknown property" warning
> ----------------------------------------------------
>
>                 Key: JEXL-138
>                 URL: https://issues.apache.org/jira/browse/JEXL-138
>             Project: Commons JEXL
>          Issue Type: Bug
>    Affects Versions: 2.1.1
>            Reporter: Kennard Consulting
>            Assignee: Henri Biestro
>             Fix For: 2.1.2, 3.0
>
>         Attachments: JexlTest.java
>
>
> JEXL displays an erroneous "inaccessible or unknown property" warning when you try to access a property is both accessible, and known, but that happens to return null.
> Please see the attached test case. JEXL reports:
> {{'foo.bar;' inaccessible or unknown property foo}}
> But foo is clearly an accessible and known property because it is accessed directly 2 lines above, and 1 line above we access 'foo.baz' which works without error.
> The difference seems to be that getBaz() returns "baz" whereas getBar() returns null.

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