Uploaded image for project: 'Commons JEXL'
  1. Commons JEXL
  2. JEXL-138

Erroneous "inaccessible or unknown property" warning

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.1
    • 2.1.2, 3.0
    • None

    Description

      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.

      Attachments

        1. JexlTest.java
          1 kB
          Kennard Consulting

        Activity

          People

            henrib Henri Biestro
            kennardconsulting Kennard Consulting
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: