Return-Path: X-Original-To: apmail-struts-issues-archive@minotaur.apache.org Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 57B23F560 for ; Mon, 1 Apr 2013 06:29:19 +0000 (UTC) Received: (qmail 1303 invoked by uid 500); 1 Apr 2013 06:29:19 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 950 invoked by uid 500); 1 Apr 2013 06:29:17 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 901 invoked by uid 99); 1 Apr 2013 06:29:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Apr 2013 06:29:15 +0000 Date: Mon, 1 Apr 2013 06:29:15 +0000 (UTC) From: =?utf-8?Q?Emir_Bu=C4=9Fra_K=C3=96KSALAN_=28JIRA=29?= To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-4034) Allow to use custom JSONwriter MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/WW-4034?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1361865= 1#comment-13618651 ]=20 Emir Bu=C4=9Fra K=C3=96KSALAN commented on WW-4034: ----------------------------------------- yes and i want use it for json plugin. must i write my own custom result ty= pe? =20 > Allow to use custom JSONwriter > ------------------------------ > > Key: WW-4034 > URL: https://issues.apache.org/jira/browse/WW-4034 > Project: Struts 2 > Issue Type: Improvement > Components: Plugin - JSON > Reporter: Emir Bu=C4=9Fra K=C3=96KSALAN > Priority: Minor > Fix For: 2.3.15 > > > Throws when accessing to a private inner class in that method: > private void map(Map map, Method method) throws JSONException > May be pass when trying to access a private class. example source code sh= ould be: > {code:java} > private void map(Map map, Method method) throws JSONException { > this.add("{"); > ... > while (it.hasNext()) { > Map.Entry entry =3D (Map.Entry) it.next(); > Object key =3D entry.getKey(); > String expr =3D null; > if (this.buildExpr) { > try { > if (key =3D=3D null) { > LOG.error("Cannot build expression for null key in " = + this.exprStack); > continue; > } else { > expr =3D this.expandExpr(key.toString()); > if (this.shouldExcludeProperty(expr)) { > continue; > } > expr =3D this.setExprStack(expr); > } > } > catch (Exception ex) { > LOG.error("Error: " + ex.getLocalizedMessage()); > continue; > } > } > if (hasData) { > this.add(','); > } > ... > this.add("}"); > } > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira