Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-767

JavaPlugin: Annotations and enums with no packages are created under the "null" package

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.2.1.Final
    • 1.2.0.Final
    • Resources
    • 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 {}\"");
         }
      

              rhn-support-ggastald George Gastaldi
              rhn-support-ggastald George Gastaldi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: