dev@glassfish.java.net

Re: [v3] Can't I rely on getURLs() anymore?

From: Kin-man Chung <Kin-Man.Chung_at_Sun.COM>
Date: Tue, 10 Jun 2008 11:27:53 -0700

Sahoo wrote:
> Kin-man Chung wrote:
>>
>>> Secondly, classloader is not always of type URLClassLoader. Can't the
>>> Java compiler be improved to use a ClassLoader to find required
>>> resource? If JDK folks fix this bug [1], would that solve the issue
>>> for JDK 6 at least?
>>>
>> It would be nice if Javac, when invoked programmatically using Jsr199,
>> can take a ClassLaoder instead of a classpath to resolve references, but
>> [1] is only a RFE, and is not fixed in JDK 6, sadly.
>>
>> -Kin-man
>>
> I know that RFE is not fixed yet; I was asking if they fixed it, would
> it solve the issue? If yes, then can we request them to fix it soon?
>
Peter Ahe, the lead for Jsr199, and my contact at Sun for Javac, had
left Sun, and I don't know who works on Javac now. I don't think there
has been any progress on this, given that the last evaluation was 2
years ago.

Having the same classloader for compiling and running a JSP page would
simplify how javac can be used in JSP compilations, though it wouldn't
directly solve the problem at hand.

Thanks.

-Kin-man

> Thanks,
> Sahoo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>