[forge-issues] [JBoss JIRA] (FORGE-767) JavaPlugin: Annotations and enums with no packages are created under the "null" package
George Gastaldi (JIRA)
jira-events at lists.jboss.org
Wed Jan 23 16:00:47 EST 2013
[ https://issues.jboss.org/browse/FORGE-767?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
George Gastaldi closed FORGE-767.
---------------------------------
Resolution: Done
> 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
More information about the forge-issues
mailing list