Commons OGNL
  1. Commons OGNL
  2. OGNL-26

Try to access to the hidden class java.util.HashMap$Entry


    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.7
    • Component/s: None
    • Labels:
    • Environment:
      JBoss, Windows, JDK 1.5



      I'm trying to switch my working code from 4.1.1 to 4.1.2-SNAPSHOT, but get an OGNL error. It seems that the Tapestry tries to get list of properties based on the actual class not interface of the object even if class is not public.

      page class:

      abstract public Map<String, Integer> getProcessMap();

      abstract public Map.Entry<String, Integer> getIterProcessEntry();

      page definition:

      <property name="iterProcessEntry" />

      <component id="processLoop" type="For">

      <binding name="source" value="processMap.entrySet()" />

      <binding name="value" value="iterProcessEntry" />


      <component id="iterProcessNameLabel" type="Insert">

      <binding name="value" value="iterProcessEntry.key" />



      tried to access class java.util.HashMap$Entry from class ognl.ASTTest28738682Accessor

      So despite "iterProcessEntry" property is defined with public interface Map.Entry, the calculation of "iterProcessEntry.key" tries to work with class information that is not public in this case. It it bug? I have not been able to find anything in JIRA. How such often used code was able to stop working and sleep though test cases? I use Sun JDK 1.5.11.


        Maksym Gryevtsov created issue -
        Jesse Kuhnert made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.7 [ 21688 ]
        Resolution Fixed [ 1 ]
        Tony Stevenson made changes -
        Project Import Mon Jun 18 09:00:45 UTC 2012 [ 1340010045016 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        6d 1h 56m 1 Jesse Kuhnert 01/Apr/07 17:44


          • Assignee:
            Jesse Kuhnert
            Maksym Gryevtsov
          • Votes:
            0 Vote for this issue
            1 Start watching this issue


            • Created: