Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 5737 invoked from network); 16 Mar 2009 14:06:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Mar 2009 14:06:54 -0000 Received: (qmail 40644 invoked by uid 500); 16 Mar 2009 14:06:53 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 40625 invoked by uid 500); 16 Mar 2009 14:06:53 -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: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 40616 invoked by uid 99); 16 Mar 2009 14:06:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Mar 2009 07:06:53 -0700 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of tiago@espinhas.net does not designate 209.85.221.123 as permitted sender) Received: from [209.85.221.123] (HELO mail-qy0-f123.google.com) (209.85.221.123) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Mar 2009 14:06:44 +0000 Received: by qyk29 with SMTP id 29so2046349qyk.5 for ; Mon, 16 Mar 2009 07:06:22 -0700 (PDT) Received: by 10.220.99.149 with SMTP id u21mr937722vcn.94.1237212382148; Mon, 16 Mar 2009 07:06:22 -0700 (PDT) Received: from ?192.168.1.82? (bl8-242-119.dsl.telepac.pt [85.241.242.119]) by mx.google.com with ESMTPS id 6sm14399490ywp.11.2009.03.16.07.06.05 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 16 Mar 2009 07:06:07 -0700 (PDT) Message-ID: <49BE5CC3.5050807@espinhas.net> Date: Mon, 16 Mar 2009 14:05:55 +0000 From: Tiago Espinha User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: derby-dev@db.apache.org Subject: Re: 'Issue' with Eclipse References: <49BBB121.9090109@espinhas.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Knut Anders Hatlen wrote: > Tiago Espinha writes: > > >> Hey guys, I'm back. >> > > Hi, and welcome back! :) > > >> Perhaps some of you still remember me from last year. I applied to >> GSoC on the Apache Derby project and unfortunately ended up not >> getting picked. I still hanged around for a while but I ended up >> leaving at some point. This year I'm back and I'm applying for GSoC >> again :) >> >> Right now I'm in a bit of a stalemate with an annoying issue that's >> bothering me. I followed all the steps to build Derby's code and to do >> the testing. I am able to build it now and I can also run derbyall >> with no issues (or close to no issues since derbyall skipped >> derbynetmats, jdbcapi and jdbc20). The problem that I am stuck with is >> actually Eclipse-related. >> >> I have sort of imported Derby into Eclipse and I am getting 1559 >> errors. With a quick glance through some of the errors, I notice that >> some of them come from jdbc4 classes, like >> LogicalCallableStatement40.java . On this one I get for example "The >> method setRowId(int, RowId) is undefined for the type >> CallableStatement" and many more errors. >> > > I don't use Eclipse myself, so I don't know how you can fix it, but my > guess is that you have configured it to use Java 5 libraries, so that it > doesn't find some of the new methods in JDBC 4.0. The warning you see in > LogicalCallableStatement40 is because it contains a line which looks > like this: > > getPhysCs().setRowId(arg0, arg1); > > getPhysCs()'s signature says that it returns a > java.sql.CallableStatement, but in Java 5 that class didn't have a > setRowId method and therefore you see the warning. > > If you use the Java 6 libraries instead, this warning should go > away. Unfortunately, you'll probably get other warnings in the JDBC 3.0 > classes instead. (Like complaints because the non-abstract class > LogicalCallableStatement implements java.sql.CallableStatement but > doesn't implement the setRowId method.) > > Hi, I think you are most likely correct about the Java 5 libraries, but the weird thing is that the libraries are actually set for Java 6, so that shouldn't be it. It doesn't matter anyway, I just switched over to Netbeans. it should be less messy :) Tiago