From issues-return-128166-archive-asf-public=cust-asf.ponee.io@maven.apache.org Wed Feb 14 18:11:04 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 56E8D18077F for ; Wed, 14 Feb 2018 18:11:04 +0100 (CET) Received: (qmail 54680 invoked by uid 500); 14 Feb 2018 17:11:03 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 54668 invoked by uid 99); 14 Feb 2018 17:11:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Feb 2018 17:11:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id B984618015C for ; Wed, 14 Feb 2018 17:11:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id AHYF9Lkg03zP for ; Wed, 14 Feb 2018 17:11:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 811D85F576 for ; Wed, 14 Feb 2018 17:11:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 103CBE026D for ; Wed, 14 Feb 2018 17:11:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 504DA240F6 for ; Wed, 14 Feb 2018 17:11:00 +0000 (UTC) Date: Wed, 14 Feb 2018 17:11:00 +0000 (UTC) From: "Jake Robb (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (MCOMPILER-325) StackOverflowError from javac is not reflected in output 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/MCOMPILER-325?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1= 6364445#comment-16364445 ]=20 Jake Robb edited comment on MCOMPILER-325 at 2/14/18 5:10 PM: -------------------------------------------------------------- So, I decided to be a good citizen and make a test project, and in my test = project, I'm seeing the expected output. I'm unclear on why I wasn't earlie= r. I'll do some more research and=C2=A0update this as soon as I know more. = In the meantime, please don't close as Can't Reproduce or whatever. Thanks!= :) was (Author: jakerobb): So, I decided to be a good citizen and make a test project, and in my test = project, I'm seeing the expected output. I'm unclear on why I wasn't earlie= r. I'll do some more research and revisit this as soon as I know more. In t= he meantime, please don't close as Can't Reproduce or whatever. Thanks! :) > StackOverflowError from javac is not reflected in output > -------------------------------------------------------- > > Key: MCOMPILER-325 > URL: https://issues.apache.org/jira/browse/MCOMPILER-325 > Project: Maven Compiler Plugin > Issue Type: Bug > Affects Versions: 3.7.0 > Reporter: Jake Robb > Priority: Minor > > Context: [https://stackoverflow.com/questions/48775213/maven-compilation-= error-without-any-errors-from-the-compiler] > If the Java code being compiled contains a chain of method calls that is = too long to fit in javac's stack, javac will throw a StackOverflowError and= exit. > The resulting output indicates that javac errored, but does not show the = SOE, nor which source file caused it. (It'd be nice if it actually pointed = out the problem, but that's on javac, not on the Maven plugin.) > For more recent versions of the plugin, if {{verbose=3Dtrue}}, the plugin= output includes the files being compiled as they go, and so the last file = output is helpful, but it still doesn't=C2=A0indicate what went wrong. -X a= nd -e args to Maven are also not helpful. > In my case, the failure occurred using default settings for stack size (I= think it's 1MB) when compiling a test case that chained together 673 build= er methods, e.g. > {code:java} > return new MyBuilder().foo(a1).foo(a2).foo(...).foo(a672).foo(a673).build= ();{code} > I assume this problem is not unique to StackOverflowErrors and would affe= ct any thrown Error from javac. > The plugin should be updated to capture javac's error output and include = it when applicable. -- This message was sent by Atlassian JIRA (v7.6.3#76005)