Re: Pl/java in 8.4 bet1 sources compilation failed - Mailing list pgsql-general

From Craig Ringer
Subject Re: Pl/java in 8.4 bet1 sources compilation failed
Date
Msg-id 4A227F8F.2020407@postnewspapers.com.au
Whole thread Raw
In response to Re: Pl/java in 8.4 bet1 sources compilation failed  (Kris Jurka <books@ejurka.com>)
List pgsql-general
Kris Jurka wrote:
> Craig Ringer wrote:
>
>> Perhaps a stupid question, but isn't the `-source' parameter to javac
>> intended to mask new features and such for just the purpose of compiling
>> older sources on a new JDK?
>>
>
> The -source argument only controls language features, not
> interface/class definitions. [snip]

Ah. Thanks for that very enlightening and helpful explanation - I really
appreciate your taking the time.

It's interesting that the JDK presents these issues to driver
developers, but I see how there's no easy way around it given that Java
offers no way to declare default implementations of methods in
interfaces (iow: no multiple inheritance) so the JDBC interfaces can't
provide stubs.

Argh, if only Java had scope-based object lifetime with prompt
finalization (think C++ "stack-based" objects) and multiple inheritance...

--
Craig Ringer

pgsql-general by date:

Previous
From: Wojtek
Date:
Subject: PG_Bulkloader (or other tools) and partitions
Next
From: Andrew Smith
Date:
Subject: newbie table design question