Skip to content

Unexpected formatting of Duration for negative nanos and munutes/hours #360

@plokhotnyuk

Description

@plokhotnyuk

The following test fails:

assertEquals(Duration.parse("PT-201188937963H-26M-59.667S").toString, "PT-201188937963H-26M-59.667S")

The corresponding bug was fixed in JDK: https://bugs.openjdk.java.net/browse/JDK-8054978

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions