[JBoss JIRA] (FORGE-767) JavaPlugin: Annotations and enums with no packages are created under the "null" package
by George Gastaldi (JIRA)
George Gastaldi created FORGE-767:
-------------------------------------
Summary: JavaPlugin: Annotations and enums with no packages are created under the "null" package
Key: FORGE-767
URL: https://issues.jboss.org/browse/FORGE-767
Project: Forge
Issue Type: Bug
Components: Resources API
Affects Versions: 1.2.0.Final
Reporter: George Gastaldi
Assignee: George Gastaldi
Fix For: 1.2.1.Final
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:
{code}
@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 {}\"");
}
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira