1 Reply Latest reply on Jun 20, 2011 1:40 AM by 869899


      Is a call to:
      thread-safe? Is this platform-dependent? The documentation is silent about this (as usual when it comes to thread-safety).

      (Apologies if this is the wrong forum; cannot find one for javax.tools.)

        • 1. Re: javax.tools.JavaCompiler
          This is a Lazily loaded static object.
          The call to getSystemJavaCompiler() is also static and just uses that standard Class.newInstance() method to return a completely new instance of the compilerClass.
          There is nothing not thread safe about this, but if you keep and share that new instance later it won't be.