This could happen when running the compiler from the command line, where MemoryBasedClassLoader is used which does not ever create Package instances.
This could happen when running the compiler from the command line, where MemoryBasedClassLoader is used which does not ever create Package instances.