Return-Path: X-Original-To: apmail-tapestry-commits-archive@minotaur.apache.org Delivered-To: apmail-tapestry-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7E4C49C97 for ; Wed, 19 Oct 2011 17:13:35 +0000 (UTC) Received: (qmail 86537 invoked by uid 500); 19 Oct 2011 17:13:34 -0000 Delivered-To: apmail-tapestry-commits-archive@tapestry.apache.org Received: (qmail 86481 invoked by uid 500); 19 Oct 2011 17:13:34 -0000 Mailing-List: contact commits-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tapestry.apache.org Delivered-To: mailing list commits@tapestry.apache.org Received: (qmail 86353 invoked by uid 99); 19 Oct 2011 17:13:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Oct 2011 17:13:34 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Oct 2011 17:13:32 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 4963A311608 for ; Wed, 19 Oct 2011 17:13:11 +0000 (UTC) Date: Wed, 19 Oct 2011 17:13:11 +0000 (UTC) From: "Howard M. Lewis Ship (Closed) (JIRA)" To: commits@tapestry.apache.org Message-ID: <1181424631.11198.1319044391301.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <12161335.21211291108513388.JavaMail.jira@thor> Subject: [jira] [Closed] (TAP5-1360) Cannot @Inject array-typed fields MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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