Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8016742

JAXB does not support java.time.* types

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Won't Fix
    • P3
    • tbd
    • 8
    • xml
    • windows_7

    Description

      FULL PRODUCT VERSION :
      java version " 1.8.0-ea "
      Java(TM) SE Runtime Environment (build 1.8.0-ea-b93)
      Java HotSpot(TM) 64-Bit Server VM (build 25.0-b34, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Windows 7 64-bit

      A DESCRIPTION OF THE PROBLEM :
      There needs to be java.time support in JAXB. I have a POJO with an @XmlElement " lastModified " of type java.time.Instant, and it just gets printed out <lastModified /> (the value is ignored). It should be printed out ISO 8601-formatted (Instant.toString()). This should be the case for all ISO 8601-representable java.time types.


      REPRODUCIBILITY :
      This bug can be reproduced always.

      Attachments

        Issue Links

          Activity

            People

              isavytsk Iaroslav Savytskyi (Inactive)
              webbuggrp Webbug Group
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: