Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 63210 invoked from network); 22 Jul 2005 19:07:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Jul 2005 19:07:02 -0000 Received: (qmail 16728 invoked by uid 500); 22 Jul 2005 19:07:01 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 16654 invoked by uid 500); 22 Jul 2005 19:07:01 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 16641 invoked by uid 99); 22 Jul 2005 19:07:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jul 2005 12:07:01 -0700 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=HTML_50_60,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 68.142.198.210 is neither permitted nor denied by domain of mcintyre.a@gmail.com) Received: from [68.142.198.210] (HELO smtp111.sbc.mail.mud.yahoo.com) (68.142.198.210) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 22 Jul 2005 12:06:54 -0700 Received: (qmail 57847 invoked from network); 22 Jul 2005 19:06:57 -0000 Received: from unknown (HELO ?192.168.0.5?) (fuzzylogic@sbcglobal.net@68.122.35.192 with plain) by smtp111.sbc.mail.mud.yahoo.com with SMTP; 22 Jul 2005 19:06:57 -0000 Mime-Version: 1.0 (Apple Message framework v733) In-Reply-To: <42E13530.9040800@sun.com> References: <42DD6B93.2010601@sun.com> <42DE7754.5090803@apache.org> <42DE7908.5020508@sun.com> <42DF40D5.8050605@debrunners.com> <42E02751.8020601@sun.com> <42E0DE27.5010407@debrunners.com> <42E13530.9040800@sun.com> Content-Type: multipart/alternative; boundary=Apple-Mail-1--129388392 Message-Id: <69451573-85D8-43FA-97F3-9151DACC013C@gmail.com> From: Andrew McIntyre Subject: Re: Using JDK 1.4 features in tests Date: Fri, 22 Jul 2005 12:06:55 -0700 To: "Derby Development" X-Mailer: Apple Mail (2.733) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --Apple-Mail-1--129388392 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Jul 22, 2005, at 11:04 AM, David Van Couvering wrote: > Hi. In some test code, I am getting errors saying the package > java.regex is not found. I suspect the tests are being built with > JDK 1.3. Is this a requirement -- can the tests not use any JDK > 1.4 functionality? Or is this just a configuration change I need > to make? For each test package, there's a compilation target which compiles the classes which use JDK 1.4 functionality. You'll need to make sure that your test is included in the target that compiles using java14compile.classpath and excluded from the target which compiles using compile.classpath. For example, in tests/lang, the target which compiles using java14compile.classpath is "compilet2". But, is this test for functionality that is exposed to JDK 1.3 or JSR169? If so, I would think that your test should run in a 1.3 VM or J2ME environment. If the test is for functionality that is only exposed to 1.4 or higher VMs, then you should probably add the test to the jdk14 suite to prevent it from running in pre-1.4 level environments. andrew --Apple-Mail-1--129388392 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1
On Jul 22, 2005, = at 11:04 AM, David Van Couvering wrote:

Hi.=A0 = In some test code, I am getting errors saying the package java.regex is = not found.=A0 I suspect the tests are being built with JDK 1.3.=A0 Is = this a requirement -- can the tests not use any JDK 1.4 functionality?=A0 = Or is this just a configuration change I need to = make?

For each test package, = there's a compilation target which compiles the classes which use JDK = 1.4 functionality. You'll need to make sure that your test is included = in the target that compiles using java14compile.classpath and excluded = from the target which compiles using compile.classpath. For example, in = tests/lang, the target which compiles using java14compile.classpath is = "compilet2".

But, is this test for = functionality that is exposed to JDK 1.3 or JSR169? If so, I would think = that your test should run in a 1.3 VM or J2ME = environment.

If the test is for = functionality that is only exposed to 1.4 or higher VMs, then you should = probably add the test to the jdk14 suite to prevent it from running in = pre-1.4 level environments.

andrew


= --Apple-Mail-1--129388392--