Problems with "-implicit:none"

José Cornado jose.cornado at gmail.com
Tue Aug 13 11:30:28 PDT 2013


Problem worked around. Thanks anyway!


On Fri, Aug 9, 2013 at 7:37 AM, José Cornado <jose.cornado at gmail.com> wrote:

> Hello!
>
> I have the following problem with javax.tools.JavaCompiler:
>
> A background jvm, depending on user input from IDE, generates classes
> dynamically.
>
> This can take time, so to avoid the delay I use the flag "-implicit:none".
> The IDE provides enough data I can infer if everything is in place and
> stick to parse/build just the target class.  Because I don't write some
> streams to disk there are a lot of cases where the *.class is in the
> correct directory but the *.java does not exist.
>
> Now the problem:
>
> If the target class imports a type from another package/location the flag
> works great. If the target class imports a class from the same location the
> JavaCompiler completely ignores this flag and the fact that the *.class
> exists and looks for the source file which doesn't exist and fails.
>
> Question 1: is this the expected behavior of the compiler.
>
> Question 2: would avoid importing type from the same package change the
> behavior of the compiler in anyway?
>
> I am running build 1.7.0_25-b15 on a mac
>
>
> Thanks a lot in advance!!!
>
> --
> José Cornado
>
> --
>
> home: http://www.efekctive.com
> blog:   http://blogging.efekctive.com
> ----------------------
>
> Everything has been said before, but since nobody listens we have to keep
> going back and beginning all over again.
>
> Andre Gide
>



-- 
José Cornado

--

home: http://www.efekctive.com
blog:   http://blogging.efekctive.com
----------------------

Everything has been said before, but since nobody listens we have to keep
going back and beginning all over again.

Andre Gide
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20130813/53e24884/attachment-0001.html 


More information about the compiler-dev mailing list