Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TU1kq-00058T-Uw for pgsql-jdbc@postgresql.org; Thu, 01 Nov 2012 20:52:45 +0000 Received: from [216.218.220.34] (helo=milan.hostgo.com) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TU1kk-0000D1-I1 for pgsql-jdbc@postgresql.org; Thu, 01 Nov 2012 20:52:44 +0000 Received: from 5ac44d40.bb.sky.com ([90.196.77.64]:48292 helo=[192.168.0.2]) by milan.hostgo.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.80) (envelope-from ) id 1TU1kh-0008M9-4b for pgsql-jdbc@postgresql.org; Thu, 01 Nov 2012 16:52:35 -0400 Message-ID: <5092E111.8000306@mlfowler.com> Date: Thu, 01 Nov 2012 20:52:33 +0000 From: Mike Fowler User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: List Subject: Buildfarm test failure Content-Type: multipart/mixed; boundary="------------070802020501090104040301" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - milan.hostgo.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - mlfowler.com X-Source: X-Source-Args: X-Source-Dir: X-Host-Lookup-Failed: Reverse DNS lookup failed for 216.218.220.34 (failed) X-Pg-Spam-Score: -1.1 (-) X-Archive-Number: 201211/5 X-Sequence-Number: 23472 This is a multi-part message in MIME format. --------------070802020501090104040301 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit The buildfarm failed last night whilst performing the JDK 5 builds: testjar: [mkdir] Created dir: /home/ubuntu/buildarea/HEAD/pgjdbc/build/tests [javac] /home/ubuntu/buildarea/HEAD/pgjdbc/build.xml:399: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 58 source files to /home/ubuntu/buildarea/HEAD/pgjdbc/build/tests [javac] /home/ubuntu/buildarea/HEAD/pgjdbc/org/postgresql/test/jdbc2/ArrayTest.java:213: cannot find symbol [javac] symbol : method createArrayOf(java.lang.String,java.lang.String[]) [javac] location: interface java.sql.Connection [javac] Array sqlArray = conn.createArrayOf("text", strArray); [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 1 error I've done some digging and it appears that a test of a JDBC4 method has ended up in the JDBC2 test suite. I've attached a patch that removes the offending test and there is no need to add it to the corresponding JDBC4 tests as it is already present. Kind regards, -- Mike Fowler Registered Linux user: 379787 --------------070802020501090104040301 Content-Type: text/x-diff; name="testfix.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="testfix.patch" *** a/org/postgresql/test/jdbc2/ArrayTest.java --- b/org/postgresql/test/jdbc2/ArrayTest.java *************** *** 186,222 **** public class ArrayTest extends TestCase assertEquals(3, resultCount); } - public void testSetObjectFromJavaArray() throws SQLException { - String[] strArray = new String[]{"a","b","c"}; - - PreparedStatement pstmt = conn.prepareStatement("INSERT INTO arrtest(strarr) VALUES (?)"); - - // Incorrect, but commonly attempted by many ORMs: - try { - pstmt.setObject(1, strArray, Types.ARRAY); - pstmt.executeUpdate(); - fail("setObject() with a Java array parameter and Types.ARRAY shouldn't succeed"); - } catch (org.postgresql.util.PSQLException ex) { - // Expected failure. - } - - // Also incorrect, but commonly attempted by many ORMs: - try { - pstmt.setObject(1, strArray); - pstmt.executeUpdate(); - fail("setObject() with a Java array parameter and no Types argument shouldn't succeed"); - } catch (org.postgresql.util.PSQLException ex) { - // Expected failure. - } - - // Correct way, though the use of "text" as a type is non-portable. - Array sqlArray = conn.createArrayOf("text", strArray); - pstmt.setArray(1, sqlArray); - pstmt.executeUpdate(); - - pstmt.close(); - } - /** * Starting with 8.0 non-standard (beginning index isn't 1) bounds * the dimensions are returned in the data. The following should --- 186,191 ---- --------------070802020501090104040301--