tada / pljava

PL/Java is a free add-on module that brings Java™ Stored Procedures, Triggers, Functions, Aggregates, Operators, Types, etc., to the PostgreSQL™ backend.
http://tada.github.io/pljava/
Other
238 stars 77 forks source link

Relax the check of a function's enclosing type #441

Closed jcflack closed 1 year ago

jcflack commented 1 year ago

The SQL/JRT standard has always just said class, but it's debatable whether it intended to mean 'class' strictly (and rule out SQL use of a static method on an interface), or simply used 'class' in a broader sense not excluding interfaces. As there is no technical obstacle to using static methods that have been supplied on an interface, relax the annotation-processing-time check that needlessly prevented that.

Add an example that tests that, and also the declaration of methods on nested classes and interfaces (as long as everything is public on the way).

Addresses https://github.com/tada/pljava/issues/426.