Fix the compiler to resolve against the boot class loader first.
I encountered a bug due to vogar including its own ancient copy
of Kxml. We were using vogar's Kxml at compile time and the boot
class path's Kxml at runtime, resulting in incorrect behavior.
This fixes the class linker to use the same parent-first strategy
in the compiler as in the runtime.
The result is that compiling vogar with the ancient Kxml will now
crash the compiler (fail fast) rather than doing undefined bad
things at runtime.
I've opened bug http://b/5663506 to fix the compiler to throw
linkage errors at runtime rather than crashing.
1 file changed