-
Bug
-
Resolution: Done
-
Major
-
1.2.0.Final
-
None
When no package is set, the org.jboss.forge.maven.facets.MavenJavaSourceFacet.getJavaResource(JavaSource<?>) method returns the class inside package "null".
The following tests confirm that behavior:
@Test public void testCreateAnnotationInRootFolder() throws Exception { queueInputLines(""); getShell() .execute( "java new-annotation-type \"public @interface TestingAnnotationTypeCreation {}\""); } @Test public void testCreateEnumInRootFolder() throws Exception { queueInputLines(""); getShell() .execute( "java new-enum-type \"public enum TestingEnumTypeCreation {}\""); }