*
* <p>This search path is used only if a requested
* class name starts with the name specified by <code>packageName</code>.
- * If <code>packageName</code> is "org.javassist" and a requested class is
+ * If <code>packageName</code> is "org.javassist." and a requested class is
* "org.javassist.test.Main", then the given URL is used for loading that class.
* The <code>URLClassPath</code> obtains a class file from:
*
* @param directory directory name ending with "/".
* It can be "/" (root directory).
* It must start with "/".
- * @param packageName package name.
+ * @param packageName package name. It must end with "." (dot).
*/
public URLClassPath(String host, int port,
String directory, String packageName) {