Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 36EE4200B67 for ; Tue, 2 Aug 2016 00:15:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3570B160AA7; Mon, 1 Aug 2016 22:15:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 74AAB160A6C for ; Tue, 2 Aug 2016 00:15:21 +0200 (CEST) Received: (qmail 14014 invoked by uid 500); 1 Aug 2016 22:15:20 -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 14000 invoked by uid 99); 1 Aug 2016 22:15:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Aug 2016 22:15:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7EB712C0033 for ; Mon, 1 Aug 2016 22:15:20 +0000 (UTC) Date: Mon, 1 Aug 2016 22:15:20 +0000 (UTC) From: "Richard Sand (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (MJAVADOC-470) fix goal corrupts file if no newline before end-comment tag MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 01 Aug 2016 22:15:22 -0000 Richard Sand created MJAVADOC-470: ------------------------------------- Summary: fix goal corrupts file if no newline before end-comment tag Key: MJAVADOC-470 URL: https://issues.apache.org/jira/browse/MJAVADOC-470 Project: Maven Javadoc Plugin Issue Type: Bug Components: javadoc Affects Versions: 2.10.3 Reporter: Richard Sand If a method comment has the end-comment tag without a preceding newline, the next method processed will become corrupted. I've attached a simple java file to this case that demonstrates the problem. In short, if Method1 has a comment like: /** * This javadoc has no newline before the end-comment token * * @throws UnsupportedEncodingException * if UTF-8 is not supported */ then Method2's javadoc will be broken. The actual cause seems to be within the QDox library -- This message was sent by Atlassian JIRA (v6.3.4#6332)