Date: Wed, 1 Sep 2010 11:54:00 -0700 From: Rob Farmer <rfarmer@predatorlabs.net> To: Ronald Klop <ronald-freebsd8@klop.yi.org> Cc: freebsd-java@freebsd.org Subject: Re: java/jdk16 missing javax.xml.bind.annotation.XmlSeeAlso Message-ID: <AANLkTikmOfh-JLi1Le40y1O9FvucJGipnuz6n_bLJKhH@mail.gmail.com> In-Reply-To: <op.vicvv1ti8527sy@212-123-145-58.ip.telfort.nl> References: <AANLkTimMw9K5NVR9i3OB-Whx%2BU0G%2BqjV-NooibX3ms1T@mail.gmail.com> <op.vicvv1ti8527sy@212-123-145-58.ip.telfort.nl>
index | next in thread | previous in thread | raw e-mail
On Wed, Sep 1, 2010 at 6:32 AM, Ronald Klop <ronald-freebsd8@klop.yi.org> wrote:
> On Wed, 01 Sep 2010 13:09:49 +0200, Rob Farmer <rfarmer@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.
>
My understanding was that there are no minor versions of Java 6 -
everything is 1.6.0 patchlevel XX and if the API changed then 1.6.1
would be released (which hasn't happened). Or is this different
because we are talking about a javax class rather java?
In any case, I'm updating a port and it looks like this class is
needed. Is setting JAVA_VENDOR= openjdk in the Makefile the best way
to force use of openjdk?
--
Rob Farmer
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTikmOfh-JLi1Le40y1O9FvucJGipnuz6n_bLJKhH>
