java/jdk16 missing javax.xml.bind.annotation.XmlSeeAlso
Ronald Klop
ronald-freebsd8 at klop.yi.org
Wed Sep 1 13:32:21 UTC 2010
On Wed, 01 Sep 2010 13:09:49 +0200, Rob Farmer <rfarmer at predatorlabs.net>
wrote:
> 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
>
There are differences in the API's between minor versions of java 6.
Especially the XML packages have bitten me more than once. That is why it
is nice, that java/openjdk6 is up to date.
Ronald.
More information about the freebsd-java
mailing list