code: private void definePackageIfNecessary(String className) {
  		int lastDot = className.lastIndexOf('.');
  		if (lastDot >= 0) {
  			String packageName = className.substring(0, lastDot);
  			if (getPackage(packageName) == null) {
  				try {
  					definePackage(className, packageName);
  				}
  				catch (IllegalArgumentException ex) {
  					// Tolerate race condition due to being parallel capable
  					if (getPackage(packageName) == null) {
  						// This should never happen as the IllegalArgumentException
  						// indicates that the package has already been defined and,
  						// therefore, getPackage(name) should not have returned null.
  						throw new AssertionError(
  								"Package " + packageName + " has already been defined "
  										+ "but it could not be found");
  					}
  				}
  			}
  		}
  	}
docs: Define a package before a {@code findClass} call is made. This is necessary to
  ensure that the appropriate manifest for nested JARs is associated with the
  package.
  @param className the class name being found