[Lift] Re: Java 5 support?

2009-09-30 Thread Derek Chen-Becker
OK, here it is: http://reviewboard.liftweb.net/r/18/ Derek On Tue, Sep 29, 2009 at 10:10 AM, Derek Chen-Becker dchenbec...@gmail.comwrote: I'll take a stab at it. I'm familiar with Dynamic Proxies but I've never implemented one before, so this would be a good experience. The only drawback

[Lift] Re: Java 5 support?

2009-09-29 Thread Viktor Klang
Is it possible to have a bridge trait for the Statement interface? On Tue, Sep 29, 2009 at 12:16 AM, Derek Chen-Becker dchenbec...@gmail.comwrote: No. I hadn't foreseen this issue, but I understand the importance of have Java 5 support. I'm fine with writing and maintaining multiple versions

[Lift] Re: Java 5 support?

2009-09-29 Thread Derek Chen-Becker
Argh. log4jdbc has two source trees, one for JDK 1.4 and one for JDK 6 :( On Tue, Sep 29, 2009 at 7:47 AM, Derek Chen-Becker dchenbec...@gmail.comwrote: Can you elaborate on what you mean? I was actually going to look at how log4jdbc does it and see if I could replicate it. Derek On Tue,

[Lift] Re: Java 5 support?

2009-09-29 Thread Viktor Klang
On Tue, Sep 29, 2009 at 3:47 PM, Derek Chen-Becker dchenbec...@gmail.comwrote: Can you elaborate on what you mean? I was actually going to look at how log4jdbc does it and see if I could replicate it. I haven't really tried this, but if you do: if you implement methods with the correct

[Lift] Re: Java 5 support?

2009-09-29 Thread Viktor Klang
On Tue, Sep 29, 2009 at 4:44 PM, Naftoli Gugenheim naftoli...@gmail.comwrote: Another option: Java has a way to dynamically implement an interface. I forgot what the classes are called. You supply a delegate and you can pattern match on which method is being invoked. In Java 5 the nonexistent

[Lift] Re: Java 5 support?

2009-09-29 Thread David Pollak
On Tue, Sep 29, 2009 at 8:32 AM, Naftoli Gugenheim naftoli...@gmail.comwrote: Exactly. Thanks. Is that an opton? I think DynamicProxy is the way to go. Derek -- if you want, I can take a crack at getting to code working. - Viktor

[Lift] Re: Java 5 support?

2009-09-29 Thread Derek Chen-Becker
I'll take a stab at it. I'm familiar with Dynamic Proxies but I've never implemented one before, so this would be a good experience. The only drawback is that I think I'm going to have to use reflection on the wrapped Statement/PreparedStatement since we won't know ahead of time which JDBC version

[Lift] Re: Java 5 support?

2009-09-28 Thread Timothy Perrett
Hmm - had this problem the other day. The only real downside of not letting it build on 1.5 from my position is that people on Mac will need to tweak the PATH because the default JDK is 5, not 6 (which is installed too, oddly) Might be some others, but I cant think of them. Cheers, Tim

[Lift] Re: Java 5 support?

2009-09-28 Thread David Pollak
On Mon, Sep 28, 2009 at 11:51 AM, Derek Chen-Becker dchenbec...@gmail.comwrote: My main concern is that after October 30, Java 5 costs money (I'm guessing not a trivial amount, either). I can get the JDK right now, but if some bug in the Java libraries pops up that would prevent things from

[Lift] Re: Java 5 support?

2009-09-28 Thread David Pollak
Crud. This just isn't going to be easy, is it? On Mon, Sep 28, 2009 at 2:04 PM, Derek Chen-Becker dchenbec...@gmail.comwrote: Another issue, which may be more problematic, is that in my case I'm compiling against the java.sql.Statement interface. If I remove the troublesome methods so that

[Lift] Re: Java 5 support?

2009-09-28 Thread Ross Mellgren
In some code we have at work that has to support Java 1.6 and down for certain things, we had to resort to having multiple versions and dynamically Class.forName the right one in at runtime. I would be overjoyed to hear of a better solution :-/ -Ross On Sep 28, 2009, at 6:00 PM, David