[BZ-995018] raise a compilation error if a java class doesn't declare a package