Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-17735

JAX-RS Application wizard: double comments in generated class

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • 4.2.0.CR1
    • 4.2.0.Beta2
    • upstream, webservices
    • None
    • Sprint to Beta3 Release

      JAX-RS Application class looks quite unusual, when is generated using JAX-RS Application wizard with option generate comments into default package.

      @ApplicationPath("/rest")
      /**
       * 
       */
      /**
       * @author rrabara
       *
       */
      public class App extends Application {
      
      }
      

      When it is generated into user defined package, then there is just one java doc comment:

      @ApplicationPath("/rest")
      /**
       * @author rrabara
       *
       */
      public class App extends Application {
      
      }
      

      However, shouldn't the comment be above the annotation? It seems that it's the preferred way (e.g. see examples http://docs.oracle.com/javase/tutorial/java/annotations/predefined.html)

            xcoulon@redhat.com Xavier Coulon
            rrabara Radoslav RĂ¡bara (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: