Return-Path: Delivered-To: apmail-incubator-jena-dev-archive@minotaur.apache.org Received: (qmail 71615 invoked from network); 13 Dec 2010 16:26:42 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Dec 2010 16:26:42 -0000 Received: (qmail 18180 invoked by uid 500); 13 Dec 2010 16:26:42 -0000 Delivered-To: apmail-incubator-jena-dev-archive@incubator.apache.org Received: (qmail 18157 invoked by uid 500); 13 Dec 2010 16:26:42 -0000 Mailing-List: contact jena-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jena-dev@incubator.apache.org Delivered-To: mailing list jena-dev@incubator.apache.org Received: (qmail 18149 invoked by uid 99); 13 Dec 2010 16:26:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Dec 2010 16:26:42 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bimargulies@gmail.com designates 209.85.214.52 as permitted sender) Received: from [209.85.214.52] (HELO mail-bw0-f52.google.com) (209.85.214.52) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Dec 2010 16:26:37 +0000 Received: by bwz4 with SMTP id 4so6857140bwz.25 for ; Mon, 13 Dec 2010 08:26:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=1kU7xyPBBmmA4LtFoBy1GHWvvn/L/oXv01KDqHTFt2o=; b=DZZeYgnZxT+lVIdrOGFCApt1hn8ErzFrlZy98fVgneKdRnu3sq6WdPS9GXP2O0DMU6 qzbkHrnUwUB+JhTvkAG92SyIMEKP1bZxHZJMQe97VbEhipnmoNeYxnj/J0zLcsmZAwdC C42XbE5FSCSdMxJa/Pooml3M4v8BX6Ui8b9eU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=VwciqZmxiiB6X5SlPBVHiipJlvisgfKsoSad+X8+fTo5gCVHNTY/+ML8CA7FGAN05f C88uJqGMU3n2ffe9d215RjOCeeRt2Znf6sPhJOg6LzLgpnxjDGBoscyZDt2z/Z6b4mqU 11QhtBdVovAo0olZx+L0JKxH/p8EBjsf6V404= MIME-Version: 1.0 Received: by 10.204.76.137 with SMTP id c9mr3940728bkk.40.1292257575780; Mon, 13 Dec 2010 08:26:15 -0800 (PST) Received: by 10.204.45.66 with HTTP; Mon, 13 Dec 2010 08:26:15 -0800 (PST) In-Reply-To: <4D064824.900@epimorphics.com> References: <4D0642A2.7050508@googlemail.com> <4D064824.900@epimorphics.com> Date: Mon, 13 Dec 2010 11:26:15 -0500 Message-ID: Subject: Re: ARQ does not compile with Eclipse using JDK 1.6.x From: Benson Margulies To: jena-dev@incubator.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable There's a bug in early versions of Java 1.6 that can manifest with things going missing in the Stax API provided by the JDK. But I've never seen it effect Eclipse. On Mon, Dec 13, 2010 at 11:21 AM, Andy Seaborne wrote: > > > On 13/12/10 15:58, Paolo Castagna wrote: >> >> FYI >> >> I have a machine with JDK 1.6.0_16 installed and when I checkout ARQ I s= ee >> compile errors in Eclipse. >> >> "Access restriction: The field END_DOCUMENT from the type >> XMLStreamConstants >> is not accessible due to restriction on required library >> /opt/jdk1.6.0_16/jre/lib/rt.jar XMLInputStAX.java >> /ARQ/src/com/hp/hpl/jena/sparql/resultset line 306" > > The issue is access to XMLStreamConstants in the rt. > > Possible one of the Java6 access restriction on statics - I clean the > codebase of all internal use through synthetic static methods but there > isn't much that can be done for external calls, except find the > error/warning and turn it off. > > The StAX API is defined by JSR-173 - I think 1.0.1 is the latest. > >> ... >> >> >> .classpath says: >> >> > >> path=3D"org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal= .debug.ui.launcher.StandardVMType/J2SE-1.5"/> >> >> >> >> But, I don't have JDK 1.5.x installed, so Eclipse is using JDK 1.6.0_16 >> and I see the errors. >> >> Easy/quick to fix, is it just my problem or others have seen this? >> >> Also, this reminded me... Jena, ARQ, TDB, etc. do they require/assume >> JDK 1.5.x or 1.6.x? > > 1.5 currently. > > I know of one user (of TDB) that currently has a 1.5 requirement (other J= VMs > still offer 1.5 support). > >> >> Paolo > > =C2=A0 =C2=A0 =C2=A0 =C2=A0Andy >