commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bjoern (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JEXL-138) Erroneous "inaccessible or unknown property" warning
Date Tue, 01 Dec 2015 08:44:10 GMT

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

Bjoern commented on JEXL-138:
-----------------------------

Hi,

I would also be happy to have a release available containing this fix.

Can anyone say when 2.1.2 (or 3.0) is published?

Best regards,
Bjoern

> 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 was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message