Sam Ruby wrote:
> 
> Berin Loritsch wrote:
> >
> > public class java.sql.SavePoint {}
> >
> > Sun guards the java.* classes jealously, and I need to know if this
> > is really a solution.
> 
> What Sun generally tries to do is to stop people from extending or
> subsetting the full API.  What you are describing certainly looks like a
> subset to me.

The only other alternative is to use the filtering/substitution in the
build.  What this would do is add a couple directives like this:

@JDBC3_START@

void methodCall() {}

@JDBC3_END@

If JDBC3.0 is installed, the two directives would be replaced with an
empty string "".  If JDBC3.0 is not installed, it is replaced with the
C-Style comment delimiters "/*" and "*/" respectively.

I don't like that solution as the code cannot compile by itself, and
leads to abuses in macros that Java so diligently tries to avoid.


-- 

"Those who would trade liberty for
 temporary security deserve neither"
                - Benjamin Franklin

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to