From: Brian S. <bs...@bs...> - 2002-08-12 04:53:37
|
> Rather than compiling against the JSR-14 v1.0/v1.2 compilers directly, > couldn't we just invoke their compile, etc, methods using reflection? Nope, don't think so. We have to subclass one of their classes (Log) to be able to catch the errors, and you can't synthesize that reflectively. (I can't think of a way anyhow!) > Of course, if reflection isn't an option, I think we'd have to do that > anyway-- JSR-14 v1.0 isn't available anymore, so only people who have an > old copy could compile DrJava if we went the route of requiring both. > (And we've already gotten complaints from people outside Rice who want > to compile. Rightfully so...) Well, you could just technically break the license from Sun and just check both versions into CVS in the lib directory. Sure, Sun says you're not allowed to redistribute, but I doubt anyone would notice, and anyhow, it's only for other developers to be able to compile against it. Actually, I wonder if you couldn't just use some sort of stubs. Hmm ... :). Wouldn't it be cool if there was a program to take a set of class files and create dummy stubs of just their public/protected interfaces? This would give you a freely redistributable set of classes to satisfy a build-time dependency. Wouldn't even be so hard to create this. :) -brian |