Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 54159 invoked from network); 28 Jul 2009 09:30:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Jul 2009 09:30:12 -0000 Received: (qmail 61699 invoked by uid 500); 28 Jul 2009 09:31:29 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 61644 invoked by uid 500); 28 Jul 2009 09:31:29 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 61634 invoked by uid 99); 28 Jul 2009 09:31:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jul 2009 09:31:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jul 2009 09:31:19 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 309E82388999; Tue, 28 Jul 2009 09:30:59 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r798469 [2/28] - in /harmony/enhanced/classlib/branches/java6: ./ depends/build/platform/ depends/files/ depends/jars/ depends/manifests/icu4j_4.0/ depends/manifests/icu4j_4.2.1/ depends/manifests/icu4j_4.2.1/META-INF/ make/ modules/accessi... Date: Tue, 28 Jul 2009 09:30:48 -0000 To: commits@harmony.apache.org From: hindessm@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090728093059.309E82388999@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Modified: harmony/enhanced/classlib/branches/java6/modules/accessibility/build.xml URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/accessibility/build.xml?rev=798469&r1=798468&r2=798469&view=diff ============================================================================== --- harmony/enhanced/classlib/branches/java6/modules/accessibility/build.xml (original) +++ harmony/enhanced/classlib/branches/java6/modules/accessibility/build.xml Tue Jul 28 09:30:33 2009 @@ -19,32 +19,12 @@ Build for ACCESSIBILITY component - + - - - - - - - - - - - - - - - - - - @@ -59,12 +39,12 @@ - + - - - + + + @@ -74,11 +54,11 @@ - + - - - + + + @@ -106,8 +86,8 @@ - @@ -117,8 +97,8 @@ - - + + @@ -128,96 +108,44 @@ - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + - - - - - - - - - - - + - - accessibility${line.separator} + + + + + + + + - - accessibility${line.separator} + + Modified: harmony/enhanced/classlib/branches/java6/modules/annotation/build.xml URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/annotation/build.xml?rev=798469&r1=798468&r2=798469&view=diff ============================================================================== --- harmony/enhanced/classlib/branches/java6/modules/annotation/build.xml (original) +++ harmony/enhanced/classlib/branches/java6/modules/annotation/build.xml Tue Jul 28 09:30:33 2009 @@ -19,30 +19,14 @@ Build for ANNOTATION component - + - - - - - - - - - - - - - + - - @@ -55,11 +39,12 @@ - + - - + + + @@ -69,17 +54,19 @@ - + + + @@ -89,18 +76,17 @@ - - - + + + - - @@ -110,8 +96,8 @@ - - + + @@ -120,87 +106,44 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + - + + + + + + + + + - - - - - - - - - - - + - - annotation${line.separator} + + + + + + + + - - annotation${line.separator} + + Modified: harmony/enhanced/classlib/branches/java6/modules/applet/build.xml URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/applet/build.xml?rev=798469&r1=798468&r2=798469&view=diff ============================================================================== --- harmony/enhanced/classlib/branches/java6/modules/applet/build.xml (original) +++ harmony/enhanced/classlib/branches/java6/modules/applet/build.xml Tue Jul 28 09:30:33 2009 @@ -19,30 +19,14 @@ Build for APPLET component - + - - - - - - - - - - - - - + - - @@ -55,11 +39,12 @@ - + + @@ -69,17 +54,19 @@ - + + + @@ -89,9 +76,9 @@ - - - + + + @@ -99,7 +86,7 @@ @@ -110,7 +97,7 @@ - + @@ -120,85 +107,44 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - applet${line.separator} + + + + + + + + - - applet${line.separator} + + Modified: harmony/enhanced/classlib/branches/java6/modules/archive/build.xml URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/archive/build.xml?rev=798469&r1=798468&r2=798469&view=diff ============================================================================== --- harmony/enhanced/classlib/branches/java6/modules/archive/build.xml (original) +++ harmony/enhanced/classlib/branches/java6/modules/archive/build.xml Tue Jul 28 09:30:33 2009 @@ -19,32 +19,14 @@ Build for ARCHIVE component - + - - - - - - - - - - - - - - - - - + @@ -61,7 +43,7 @@ - + @@ -71,30 +53,30 @@ unless="hy.skip.zlib" /> - - - + + + - - + + - - + + - - + + - + @@ -102,13 +84,13 @@ depends="-build-native-zip,-build-native-zlib,-build-native-archive" /> - + - + - + @@ -116,16 +98,16 @@ - + - + - + @@ -133,7 +115,7 @@ - + @@ -144,17 +126,17 @@ depends="-clean-native-zip,-clean-native-zlib,-clean-native-archive"/> - - - @@ -170,11 +152,12 @@ - + + @@ -192,11 +175,11 @@ - + - - - + + + @@ -224,7 +207,7 @@ @@ -235,7 +218,7 @@ - + @@ -244,162 +227,64 @@ - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + - + + + + + + + - - - - - - - - + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - - archive${line.separator} + - - archive${line.separator} + + + + + + + + + + + + + + + - - - - - - - + + Modified: harmony/enhanced/classlib/branches/java6/modules/archive/src/test/java/org/apache/harmony/archive/tests/java/util/jar/ManifestTest.java URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/archive/src/test/java/org/apache/harmony/archive/tests/java/util/jar/ManifestTest.java?rev=798469&r1=798468&r2=798469&view=diff ============================================================================== --- harmony/enhanced/classlib/branches/java6/modules/archive/src/test/java/org/apache/harmony/archive/tests/java/util/jar/ManifestTest.java (original) +++ harmony/enhanced/classlib/branches/java6/modules/archive/src/test/java/org/apache/harmony/archive/tests/java/util/jar/ManifestTest.java Tue Jul 28 09:30:33 2009 @@ -43,6 +43,8 @@ private final String MANIFEST_NAME = "manifest/hyts_MANIFEST.MF"; + private static final String MANIFEST_CONTENTS = "Manifest-Version: 1.0\nBundle-Name: ClientSupport\nBundle-Description: Provides SessionService, AuthenticationService. Extends RegistryService.\nBundle-Activator: com.ibm.ive.eccomm.client.support.ClientSupportActivator\nImport-Package: com.ibm.ive.eccomm.client.services.log,\n com.ibm.ive.eccomm.client.services.registry,\n com.ibm.ive.eccomm.service.registry; specification-version=1.0.0,\n com.ibm.ive.eccomm.service.session; specification-version=1.0.0,\n com.ibm.ive.eccomm.service.framework; specification-version=1.2.0,\n org.osgi.framework; specification-version=1.0.0,\n org.osgi.service.log; specification-version=1.0.0,\n com.ibm.ive.eccomm.flash; specification-version=1.2.0,\n com.ibm.ive.eccomm.client.xml,\n com.ibm.ive.eccomm.client.http.common,\n com.ibm.ive.eccomm.client.http.client\nImport-Service: org.osgi.service.log.LogReaderService\n org.osgi.service.log.LogService,\n com.ibm.ive.eccomm.service.registry.Regis tryService\nExport-Package: com.ibm.ive.eccomm.client.services.authentication; specification-version=1.0.0,\n com.ibm.ive.eccomm.service.authentication; specification-version=1.0.0,\n com.ibm.ive.eccomm.common; specification-version=1.0.0,\n com.ibm.ive.eccomm.client.services.registry.store; specification-version=1.0.0\nExport-Service: com.ibm.ive.eccomm.service.authentication.AuthenticationService,\n com.ibm.ive.eccomm.service.session.SessionService\nBundle-Vendor: IBM\nBundle-Version: 1.2.0\n"; + private File resources; @Override @@ -79,8 +81,8 @@ * @tests java.util.jar.Manifest#Manifest(java.util.jar.Manifest) */ public void testCopyingConstructor() throws IOException { - Manifest firstManifest = new Manifest(new URL(Support_Resources - .getURL(MANIFEST_NAME)).openStream()); + Manifest firstManifest = new Manifest(new ByteArrayInputStream( + MANIFEST_CONTENTS.getBytes("ISO-8859-1"))); Manifest secondManifest = new Manifest(firstManifest); assertEquals(firstManifest, secondManifest); } @@ -127,8 +129,8 @@ Manifest mCopy = new Manifest(is); assertEquals(m, mCopy); - Manifest manifest = new Manifest(new URL(Support_Resources - .getURL(MANIFEST_NAME)).openStream()); + Manifest manifest = new Manifest(new ByteArrayInputStream( + MANIFEST_CONTENTS.getBytes("ISO-8859-1"))); checkManifest(manifest); // regression test for HARMONY-5424 @@ -174,10 +176,10 @@ * @tests java.util.jar.Manifest#equals(java.lang.Object) */ public void testEquals() throws IOException { - Manifest firstManifest = new Manifest(new URL(Support_Resources - .getURL(MANIFEST_NAME)).openStream()); - Manifest secondManifest = new Manifest(new URL(Support_Resources - .getURL(MANIFEST_NAME)).openStream()); + Manifest firstManifest = new Manifest(new ByteArrayInputStream( + MANIFEST_CONTENTS.getBytes("ISO-8859-1"))); + Manifest secondManifest = new Manifest(new ByteArrayInputStream( + MANIFEST_CONTENTS.getBytes("ISO-8859-1"))); assertEquals(firstManifest, secondManifest); } Modified: harmony/enhanced/classlib/branches/java6/modules/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ZipFileTest.java URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ZipFileTest.java?rev=798469&r1=798468&r2=798469&view=diff ============================================================================== --- harmony/enhanced/classlib/branches/java6/modules/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ZipFileTest.java (original) +++ harmony/enhanced/classlib/branches/java6/modules/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ZipFileTest.java Tue Jul 28 09:30:33 2009 @@ -182,7 +182,7 @@ r = in.read(buf); in.close(); assertEquals("incorrect contents", - "This is also text", new String(buf, 0, r)); + "This is also text", new String(buf, 0, r, "UTF-8")); } public void test_getEntryLjava_lang_String_Ex() throws IOException { @@ -212,7 +212,7 @@ int r; is.read(rbuf, 0, r = (int) zentry.getSize()); assertEquals("getInputStream read incorrect data", "This is text", new String(rbuf, - 0, r)); + 0, r, "UTF-8")); } catch (java.io.IOException e) { fail("IOException during getInputStream"); } finally { Modified: harmony/enhanced/classlib/branches/java6/modules/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ZipOutputStreamTest.java URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ZipOutputStreamTest.java?rev=798469&r1=798468&r2=798469&view=diff ============================================================================== --- harmony/enhanced/classlib/branches/java6/modules/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ZipOutputStreamTest.java (original) +++ harmony/enhanced/classlib/branches/java6/modules/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ZipOutputStreamTest.java Tue Jul 28 09:30:33 2009 @@ -67,7 +67,7 @@ ZipEntry ze = new ZipEntry("testEntry"); ze.setTime(System.currentTimeMillis()); zos.putNextEntry(ze); - zos.write("Hello World".getBytes()); + zos.write("Hello World".getBytes("UTF-8")); zos.closeEntry(); assertTrue("closeEntry failed to update required fields", ze.getSize() == 11 && ze.getCompressedSize() == 13); Modified: harmony/enhanced/classlib/branches/java6/modules/auth/build.xml URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/auth/build.xml?rev=798469&r1=798468&r2=798469&view=diff ============================================================================== --- harmony/enhanced/classlib/branches/java6/modules/auth/build.xml (original) +++ harmony/enhanced/classlib/branches/java6/modules/auth/build.xml Tue Jul 28 09:30:33 2009 @@ -20,42 +20,12 @@ Build for AUTH component - + - - - - - - - - - - - - - - - - - - - - - - - - @@ -70,16 +40,16 @@ - + - + - + @@ -87,7 +57,7 @@ - + @@ -95,12 +65,13 @@ - + - - + + + @@ -110,10 +81,10 @@ - + - - + + @@ -134,17 +105,17 @@ - - - + + + - @@ -154,9 +125,9 @@ - - - + + + @@ -165,111 +136,49 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + - + + + - - - - - - - - - - - - - + + + + + + + + + - - - - - - - + - - auth${line.separator} + + + + + + + + + - - auth${line.separator} + + Modified: harmony/enhanced/classlib/branches/java6/modules/auth/src/main/native/auth/unix/authnix.c URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/auth/src/main/native/auth/unix/authnix.c?rev=798469&r1=798468&r2=798469&view=diff ============================================================================== --- harmony/enhanced/classlib/branches/java6/modules/auth/src/main/native/auth/unix/authnix.c (original) +++ harmony/enhanced/classlib/branches/java6/modules/auth/src/main/native/auth/unix/authnix.c Tue Jul 28 09:30:33 2009 @@ -131,6 +131,7 @@ (*jenv)->SetObjectField (jenv, thiz, jf_groupname, (*jenv)->NewStringUTF (jenv, pg->gr_name)); gcount = getgroups(0, NULL); + if( 0 != gcount ) { gid_t * gids; @@ -138,10 +139,13 @@ jlong * jgs_raw; jobjectArray jgsnames; int i; + int gcount_temp; gids = (gid_t*)hymem_allocate_memory(gcount*sizeof(gid_t)); - getgroups(gcount, gids); + /* capture return code to fix compiler warning */ + gcount_temp = getgroups(gcount, gids); + jgs = (*jenv)->NewLongArray (jenv, gcount); jgs_raw = (*jenv)->GetLongArrayElements (jenv, jgs, NULL); jgsnames = (*jenv)->NewObjectArray (jenv, gcount, jclassString, NULL);