Packages

c

bloop.CompilerCache

BloopForkedJavaCompiler

final class BloopForkedJavaCompiler extends JavaCompiler

A Java compiler that will invalidate class files from a forked java compiler by adding a new classes directory to the begining of the -classpath compiler option where we will write an empty class file for every invalidated class file. This empty class file will force the javac compiler to output an error similar to:

/path/to/File.java:1 error: cannot access Bar

bad class file: ./B.class class file contains wrong class: java.lang.Object Please remove or make sure it appears in the correct subdirectory of the classpath.

Fortunately, the last bit is not parsed by Zinc's JavacParser and doesn't show up as a reported Zinc problem. The first bit does show up and it's a good enough error to intuit that the symbol might not exist, so we leave it there. We cannot replace that error with a custom one because it would be confusing if the accessibility error is real and not caused by our invalidation trick.

Linear Supertypes
JavaCompiler, JavaTool, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BloopForkedJavaCompiler
  2. JavaCompiler
  3. JavaTool
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BloopForkedJavaCompiler(javaHome: Option[File])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. def run(sources: Array[File], options: Array[String], topts: IncToolOptions, reporter: Reporter, log: Logger): Boolean
    Definition Classes
    BloopForkedJavaCompiler → JavaTool
  16. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from JavaCompiler

Inherited from JavaTool

Inherited from AnyRef

Inherited from Any

Ungrouped