fix :JavaNew edge case

handle case where the user omits the package name, but appends .java
suffix