From owner-freebsd-java@FreeBSD.ORG Wed Sep 1 13:32:21 2010 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 90E5F10656B8 for ; Wed, 1 Sep 2010 13:32:21 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smtp-out2.tiscali.nl (smtp-out2.tiscali.nl [195.241.79.177]) by mx1.freebsd.org (Postfix) with ESMTP id 50D228FC2A for ; Wed, 1 Sep 2010 13:32:21 +0000 (UTC) Received: from [212.123.145.58] (helo=sjakie.klop.ws) by smtp-out2.tiscali.nl with esmtp (Exim) (envelope-from ) id 1OqnQK-00060w-9w; Wed, 01 Sep 2010 15:32:20 +0200 Received: from 212-123-145-58.ip.telfort.nl (localhost [127.0.0.1]) by sjakie.klop.ws (Postfix) with ESMTP id 3317F18554; Wed, 1 Sep 2010 15:32:15 +0200 (CEST) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: freebsd-java@freebsd.org, "Rob Farmer" References: Date: Wed, 01 Sep 2010 15:32:15 +0200 MIME-Version: 1.0 From: "Ronald Klop" Message-ID: In-Reply-To: User-Agent: Opera Mail/10.61 (FreeBSD) Content-Transfer-Encoding: quoted-printable Cc: Subject: Re: java/jdk16 missing javax.xml.bind.annotation.XmlSeeAlso X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2010 13:32:21 -0000 On Wed, 01 Sep 2010 13:09:49 +0200, Rob Farmer = =20 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. =20 Especially the XML packages have bitten me more than once. That is why it= =20 is nice, that java/openjdk6 is up to date. Ronald.