java.lang.ClassNotFoundException for array properties
-----------------------------------------------------
Key: TAPESTRY-2064
URL: https://issues.apache.org/jira/browse/TAPESTRY-2064
Project: Tapestry
Issue Type: Bug
Components: tapestry-core
Affects Versions: 5.0.8
Reporter: Alexey Pomogaev
Fix For: 5.0.8
In 5.0.7 snapshot properties with type "String[]" normally worked, after
update last revision problems have begun:
java.lang.ClassNotFoundException
java/lang/String[]
Stack trace
* java.lang.Class.forName0(Native Method)
* java.lang.Class.forName(Class.java:247)
*
org.apache.tapestry.internal.services.ComponentClassCacheImpl.forName(ComponentClassCacheImpl.java:50)
*
org.apache.tapestry.internal.structure.InternalComponentResourcesImpl.readParameter(InternalComponentResourcesImpl.java:235)
*
ru.getdone.view.components.OrdersList._$read_parameter_urlParams(OrdersList.java)
I have made small testing:
public static void main(String[] args) throws ClassNotFoundException {
String[] test = new String[] {};
List<String> test2 = new ArrayList<String>();
Class.forName(test.getClass().getCanonicalName());
//java.lang.ClassNotFoundException
Class.forName(test2.getClass().getCanonicalName()); //ok
Class.forName(test.getClass().getName()); //ok
}
Probably in the tapestry it is necessary to use "getClass().getName()"
for Array for the decision of a problem.
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]