First compile A.scala and B.scala. Then remove the file bug/B.class and run scalac with file C.scala. Now you wi\
ll get the following message:
Exception in thread "main" java.lang.AssertionError: no class 'bug.B'
at scalac.symtab.Definitions.getClass(Definitions.java:657)
at scalac.symtab.classfile.JavaTypeCreator.classType(JavaTypeCreator.java:93)
at scalac.symtab.classfile.Signatures.sigToType(Signatures.java:82)
at scalac.symtab.classfile.Signatures.sigToType(Signatures.java:98)
at scalac.symtab.classfile.Signatures.sigToType(Signatures.java:54)
at scalac.symtab.classfile.ClassfileParser.readType(ClassfileParser.java:177)
at scalac.symtab.classfile.ClassfileParser.parseMethod(ClassfileParser.java:206)
at scalac.symtab.classfile.ClassfileParser.parse(ClassfileParser.java:115)
at scalac.symtab.classfile.ClassParser.doComplete(ClassParser.java:34)
at scalac.symtab.classfile.MetadataParser.complete(MetadataParser.java:34)
at scalac.symtab.classfile.ClassParser$StaticsParser.complete(ClassParser.java:64)
at scalac.symtab.Symbol.info(Symbol.java:830)
...
|