From owner-freebsd-java@FreeBSD.ORG Wed Sep 1 18:54:02 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 EAC2010656C4 for ; Wed, 1 Sep 2010 18:54:02 +0000 (UTC) (envelope-from rfarmer@predatorlabs.net) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id A7C0E8FC13 for ; Wed, 1 Sep 2010 18:54:02 +0000 (UTC) Received: by vws7 with SMTP id 7so7852404vws.13 for ; Wed, 01 Sep 2010 11:54:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.61.140 with SMTP id t12mr4699526vch.54.1283367240133; Wed, 01 Sep 2010 11:54:00 -0700 (PDT) Received: by 10.220.200.8 with HTTP; Wed, 1 Sep 2010 11:54:00 -0700 (PDT) X-Originating-IP: [71.1.133.114] In-Reply-To: References: Date: Wed, 1 Sep 2010 11:54:00 -0700 Message-ID: From: Rob Farmer To: Ronald Klop Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-java@freebsd.org 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 18:54:03 -0000 On Wed, Sep 1, 2010 at 6:32 AM, Ronald Klop w= rote: > On Wed, 01 Sep 2010 13:09:49 +0200, Rob Farmer > 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