Date: Wed, 01 Sep 2010 22:07:06 +0200 From: "Ronald Klop" <ronald-freebsd8@klop.yi.org> To: "Rob Farmer" <rfarmer@predatorlabs.net> Cc: freebsd-java@freebsd.org Subject: Re: java/jdk16 missing javax.xml.bind.annotation.XmlSeeAlso Message-ID: <op.vidd54c08527sy@212-123-145-58.ip.telfort.nl> In-Reply-To: <AANLkTikmOfh-JLi1Le40y1O9FvucJGipnuz6n_bLJKhH@mail.gmail.com> References: <AANLkTimMw9K5NVR9i3OB-Whx%2BU0G%2BqjV-NooibX3ms1T@mail.gmail.com> <op.vicvv1ti8527sy@212-123-145-58.ip.telfort.nl> <AANLkTikmOfh-JLi1Le40y1O9FvucJGipnuz6n_bLJKhH@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 01 Sep 2010 20:54:00 +0200, Rob Farmer <rfarmer@predatorlabs.net>= =20 wrote: > On Wed, Sep 1, 2010 at 6:32 AM, Ronald Klop =20 > <ronald-freebsd8@klop.yi.org> wrote: >> On Wed, 01 Sep 2010 13:09:49 +0200, Rob Farmer =20 >> <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/annotatio= n/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= =20 >> 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? > I think JAVA_VENDOR=3Dopenjdk is what you need. Just try it. Ronald.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.vidd54c08527sy>