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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.2.1.Final
    • 1.2.0.Final
    • Resources
    • None

    Description

      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 {}\"");
         }
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: