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

javax.xml.bind.annotation.XmlElementRef example missing required annotation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • 7, 8
    • xml

      A DESCRIPTION OF THE PROBLEM :
      Exampe 1 defines an abstract class Task that should be annotated with @XmlSeeAll but isn't. The example as given doesn't work.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      In example 1, the ant example should read:

          @XmlSeeAlso({JarTask.class,JavacTask.class})
          abstract class Task {
          }

      at least, I had to do that to get it working and stack overflow agrees, thanks to Jared Brothers @ Google for finding this.
      ACTUAL -
      Currently reads:

          abstract class Task {
          }


      URL OF FAULTY DOCUMENTATION :
      http://docs.oracle.com/javase/7/docs/api/javax/xml/bind/annotation/XmlElementRef.html

            aefimov Aleksej Efimov
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: