Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TO6CJ-0002pG-93 for pgsql-bugs@postgresql.org; Tue, 16 Oct 2012 12:24:35 +0000 Received: from mail-pb0-f46.google.com ([209.85.160.46]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TO6CC-0002pO-E8 for pgsql-bugs@postgresql.org; Tue, 16 Oct 2012 12:24:34 +0000 Received: by mail-pb0-f46.google.com with SMTP id rr4so5927261pbb.19 for ; Tue, 16 Oct 2012 05:24:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=snyu3CCjqk6Zc/mZkx5s4eeY8N4C1Xjgq8zuYGw7sr0=; b=VN20pBZBHk7hSZsGPWCuaIrJDQUEC8382L14KHv/CI+RJM/F91mBHD1fvwJs4aj9sI 2xLWjDmZfyXfuCAcx4U8lgrMVjo9dJY7XUwMQ+hj16EQGcW4XtYihlYTd5pLcn2fMBd1 IS5Swvz6hUmDcNiexcHc2a11H4gnm6RDWln1wHSf/v0684Fx5ZEAhkmnZJANtD67Us+w aJT2Hvhih3/DOBeWn2M4U1/6lvThBpLnSsZgOY8P+cmuqmsOQQJ27P5sUN6ZE2Bbau9C kkbBsB+dR0M/OQnkWfUW0lIxjSkXue3Sy8FyNVeZo4iL2/HZtg9e/ZR9Tibt7AnXmdgZ FaDQ== Received: by 10.66.78.198 with SMTP id d6mr41235661pax.61.1350390266114; Tue, 16 Oct 2012 05:24:26 -0700 (PDT) Received: from ayaki.localdomain (124-148-78-49.dyn.iinet.net.au. [124.148.78.49]) by mx.google.com with ESMTPS id kn8sm7938484pbc.24.2012.10.16.05.24.23 (version=SSLv3 cipher=OTHER); Tue, 16 Oct 2012 05:24:25 -0700 (PDT) Message-ID: <507D51F4.5020501@ringerc.id.au> Date: Tue, 16 Oct 2012 20:24:20 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 MIME-Version: 1.0 To: Sean Hogan CC: pgsql-bugs@postgresql.org Subject: Re: [Spam] Re: BUG #7577: JDBC Driver - Compiled with Java 7 References: <1350313807264-5728220.post@n5.nabble.com> <507CC8A6.4070303@ringerc.id.au> <507D4EC9.3030708@compusult.net> In-Reply-To: <507D4EC9.3030708@compusult.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQm5vsQcoApu7GQOhMGLCYUeMwv6moL4PbP5/k9g2/aE+PiZlBQwMX0CYHy3Tit2oC5jqyC7 X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201210/165 X-Sequence-Number: 34465 On 10/16/2012 08:10 PM, Sean Hogan wrote: > On 12-10-16 12:08 AM, Craig Ringer wrote: >> On 10/15/2012 11:10 PM, seancompusult wrote: >>> Does anyone have a solution for people like me who must use Java 5? >> >> I had no problems building current git head of the JDBC driver with >> Java SE 5, nor the REL_9_2_STABLE branch. >> > > Ah, quite right. I was having a problem running ant, because it itself > was compiled with Java 7. :-( IMO the whole approach of relying on > compiling with specific Java versions is flawed, but at least I've > gotten past this issue so I'm happy. Thanks for that. Yes, it's flawed, but it's also unfortunately necessary. javac offers flags like -source 1.5 -target 1.5 for controlling bytecode generation and source compatibility. That's fine, but it offers absolutely no way to say "treat standard library packages, classes and methods added after Java SE 5 as missing". This means that for testing at least it's required to build with a variety of JDK versions. I agree that it'd be nice to support downlevel class generation for end users. It may even be possible; I haven't dug into build.xml in detail yet. -- Craig Ringer