Skip site navigation (1)Skip section navigation (2)
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Sep 1, 2010 at 6:32 AM, Ronald Klop <ronald-freebsd8@klop.yi.org> w=
rote:
> On Wed, 01 Sep 2010 13:09:49 +0200, Rob Farmer <rfarmer@predatorlabs.net>
> wrote:
>
>> With java/jdk16:
>>
>> Animal.java:
>> =A0 =A0import javax.xml.bind.annotation.XmlSeeAlso;
>>
>> =A0 =A0@XmlSeeAlso ({Dog.class,Cat.class})
>> =A0 =A0class Animal {}
>> =A0 =A0class Dog extends Animal {}
>> =A0 =A0class Cat extends Animal {}
>>
>> javac Animal.java
>>
>> =A0 =A0Animal.java:1: cannot find symbol
>> =A0 =A0symbol =A0: class XmlSeeAlso
>> =A0 =A0location: package javax.xml.bind.annotation
>> =A0 =A0import javax.xml.bind.annotation.XmlSeeAlso;
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0^
>> =A0 =A0Animal.java:3: cannot find symbol
>> =A0 =A0symbol: class XmlSeeAlso
>> =A0 =A0@XmlSeeAlso ({Dog.class,Cat.class})
>> =A0 =A0 ^
>> =A0 =A02 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/X=
mlSeeAlso.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=3D openjdk in the Makefile the best way
to force use of openjdk?

--=20
Rob Farmer



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTikmOfh-JLi1Le40y1O9FvucJGipnuz6n_bLJKhH>