You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Maksym Gryevtsov (JIRA)" <de...@tapestry.apache.org> on 2007/03/14 16:27:09 UTC
[jira] Created: (TAPESTRY-1352) OGNL expression try to access
hidden class java.util.HashMap$Entry
OGNL expression try to access hidden class java.util.HashMap$Entry
------------------------------------------------------------------
Key: TAPESTRY-1352
URL: https://issues.apache.org/jira/browse/TAPESTRY-1352
Project: Tapestry
Issue Type: Bug
Affects Versions: 4.1.2
Environment: Sun JDK 1.5.11, JBoss 4.0.3SP1
Reporter: Maksym Gryevtsov
Priority: Critical
I got an OGNL error during upgrade from 4.1.1 to 4.1.2-SNAPSHOT. 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>
<component id="iterProcessNameLabel" type="Insert">
<binding name="value" value="iterProcessEntry.key" />
</component>
Exception during calculation of "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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Resolved: (TAPESTRY-1352) OGNL expression try to access
hidden class java.util.HashMap$Entry
Posted by "Jesse Kuhnert (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jesse Kuhnert resolved TAPESTRY-1352.
-------------------------------------
Resolution: Won't Fix
Bug report appreciated, but if you would be so kind as to report it in the project responsible.. :
http://jira.opensymphony.com/browse/OGNL
> OGNL expression try to access hidden class java.util.HashMap$Entry
> ------------------------------------------------------------------
>
> Key: TAPESTRY-1352
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1352
> Project: Tapestry
> Issue Type: Bug
> Affects Versions: 4.1.2
> Environment: Sun JDK 1.5.11, JBoss 4.0.3SP1
> Reporter: Maksym Gryevtsov
> Priority: Critical
> Fix For: 4.1.1
>
>
> I got an OGNL error during upgrade from 4.1.1 to 4.1.2-SNAPSHOT. 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>
> <component id="iterProcessNameLabel" type="Insert">
> <binding name="value" value="iterProcessEntry.key" />
> </component>
> Exception during calculation of "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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAPESTRY-1352) OGNL expression try to access
hidden class java.util.HashMap$Entry
Posted by "Maksym Gryevtsov (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maksym Gryevtsov updated TAPESTRY-1352:
---------------------------------------
Fix Version/s: 4.1.1
> OGNL expression try to access hidden class java.util.HashMap$Entry
> ------------------------------------------------------------------
>
> Key: TAPESTRY-1352
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1352
> Project: Tapestry
> Issue Type: Bug
> Affects Versions: 4.1.2
> Environment: Sun JDK 1.5.11, JBoss 4.0.3SP1
> Reporter: Maksym Gryevtsov
> Priority: Critical
> Fix For: 4.1.1
>
>
> I got an OGNL error during upgrade from 4.1.1 to 4.1.2-SNAPSHOT. 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>
> <component id="iterProcessNameLabel" type="Insert">
> <binding name="value" value="iterProcessEntry.key" />
> </component>
> Exception during calculation of "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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org