Return-Path: X-Original-To: apmail-avro-dev-archive@www.apache.org Delivered-To: apmail-avro-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A63A3F49B for ; Thu, 2 May 2013 03:24:18 +0000 (UTC) Received: (qmail 26301 invoked by uid 500); 2 May 2013 03:24:17 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 26152 invoked by uid 500); 2 May 2013 03:24:17 -0000 Mailing-List: contact dev-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@avro.apache.org Delivered-To: mailing list dev@avro.apache.org Received: (qmail 26098 invoked by uid 99); 2 May 2013 03:24:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 May 2013 03:24:16 +0000 Date: Thu, 2 May 2013 03:24:16 +0000 (UTC) From: "Micah Huff (JIRA)" To: dev@avro.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AVRO-1316) IDL code-generation generates too-long literals for very large schemas MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AVRO-1316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13647235#comment-13647235 ] Micah Huff commented on AVRO-1316: ---------------------------------- To tack on to [~trochee]'s comment, this is an issue for the generated Protocol files as well. Both will encounter the same java compiler issue. > IDL code-generation generates too-long literals for very large schemas > ---------------------------------------------------------------------- > > Key: AVRO-1316 > URL: https://issues.apache.org/jira/browse/AVRO-1316 > Project: Avro > Issue Type: Bug > Components: java > Reporter: Jeremy Kahn > Priority: Minor > > When I work from a very large IDL schema, the Java code generated includes a schema JSON literal that exceeds the length of the maximum allowed literal string ([65535 characters|http://stackoverflow.com/questions/8323082/size-of-initialisation-string-in-java]). > This creates weird Maven errors like: {{[ERROR] ...FooProtocol.java:[13,89] constant string too long}}. > It might seem a little crazy, but a 64-kilobyte JSON protocol isn't outrageous at all for some of the more involved data structures, especially if we're including documentation strings etc. > I believe the fix should be a bit more sensitivity to the length of the JSON literal (and a willingness to split it into more than one literal, joined by {{+}}), but I haven't figured out where that change needs to go. Has anyone else encountered this problem? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira