Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

PrettyPrintXMLWriter fails with a java.util.NoSuchElementException (Java 1.7 only) #51

Copy link
Copy link
Closed
@belingueres

Description

@belingueres
Issue body actions

As discussed on maven developers mailing-list [1], the PrettyPrintXMLWriter fails with a NoSuchElementException when calling the endElement() method on the root XML tag.
As verified after debugging, the LinkedList implementation (used as a stack) is NOT empty: it contains one element that can be safely removed from the list, but instead it throws the exception as if that list were actually empty.

The bug arises when executing the build with JDK 7u80 and 7u79 on Windows OS (Windows 10 tested by me).
Also verified that the bug does not arises when:

  • disabling string concatenation optimizations on Java 7 (-XX:-OptimizeStringConcat).
  • executing maven with remote debugging (command mvnDebug).
  • executing maven with Java 8.

[1] https://www.mail-archive.com/dev@maven.apache.org/msg117970.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.