Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Sep 2010 04:09:49 -0700
From:      Rob Farmer <rfarmer@predatorlabs.net>
To:        freebsd-java@freebsd.org
Subject:   java/jdk16 missing javax.xml.bind.annotation.XmlSeeAlso
Message-ID:  <AANLkTimMw9K5NVR9i3OB-Whx%2BU0G%2BqjV-NooibX3ms1T@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
With java/jdk16:

Animal.java:
    import javax.xml.bind.annotation.XmlSeeAlso;

    @XmlSeeAlso ({Dog.class,Cat.class})
    class Animal {}
    class Dog extends Animal {}
    class Cat extends Animal {}

javac Animal.java

    Animal.java:1: cannot find symbol
    symbol  : class XmlSeeAlso
    location: package javax.xml.bind.annotation
    import javax.xml.bind.annotation.XmlSeeAlso;
                                ^
    Animal.java:3: cannot find symbol
    symbol: class XmlSeeAlso
    @XmlSeeAlso ({Dog.class,Cat.class})
     ^
    2 errors

This class seems to be missing, yet it is listed in the JDK 6 docs:

http://download.oracle.com/javase/6/docs/api/javax/xml/bind/annotation/XmlSeeAlso.html

-- 
Rob Farmer



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimMw9K5NVR9i3OB-Whx%2BU0G%2BqjV-NooibX3ms1T>