[ 
https://issues.apache.org/jira/browse/TAP5-1360?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Howard M. Lewis Ship closed TAP5-1360.
--------------------------------------

    Resolution: Invalid
      Assignee: Howard M. Lewis Ship

I've marked this as invalid, because I'm pretty certain this will work 
correctly under new new code base (based on plastic, not Javassist).  Please 
retry and reopen the issue if it still fails.
                
> Cannot @Inject array-typed fields
> ---------------------------------
>
>                 Key: TAP5-1360
>                 URL: https://issues.apache.org/jira/browse/TAP5-1360
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.2.4, 5.2.5
>            Reporter: Jochen Kemnade
>            Assignee: Howard M. Lewis Ship
>            Priority: Minor
>         Attachments: TAP5-1360.patch
>
>
> I was trying to inject symbol into a String[]-typed page class like 
> @Inject
> @Symbol(SymbolConstants.SUPPORTED_LOCALES)
> private String[] supportedLocales;
> This leads to
> org.apache.tapestry5.internal.services.TransformationException: Error 
> obtaining injected value for field org.example.pages.Index.supportedLocales: 
> java.lang.ClassNotFoundException: java/lang/String[]
> The problem here is that InternalClassTransformationImpl.toClass(String) 
> tries to invoke Class.forName("java.lang.String[]", true, 
> classFactory.getClassLoader()); which leads to the ClassNotFoundException.
> I attached a patch and a test case.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to