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

Creation of JAX-RS Resource generate code with syntax error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.2.0.Beta3
    • 4.2.0.Beta2
    • webservices
    • None
    • Sprint to Beta3 Release
    • Hide

      1. ASSERT: Have some project (I have Dynamic project)
      2. EXEC: Open JAX-RS Resource wizard (File -> New -> JAX-RS Resource)
      3. EXEC: Fill in a name for resource and package other than default.
      4. EXEC: Finish wizard (Proceed to next page and finish. It is not necessary to choose application - choosing an application does not have any effect on this. You can choose skip JAX-RS Application creation).

      Expected result: Resource file is created successfully.
      Failed: Created resource file contains syntactic error "import ;"

      Show
      1. ASSERT: Have some project (I have Dynamic project) 2. EXEC: Open JAX-RS Resource wizard (File -> New -> JAX-RS Resource) 3. EXEC: Fill in a name for resource and package other than default. 4. EXEC: Finish wizard (Proceed to next page and finish. It is not necessary to choose application - choosing an application does not have any effect on this. You can choose skip JAX-RS Application creation). Expected result: Resource file is created successfully. Failed: Created resource file contains syntactic error "import ;"
    • Workaround Exists
    • Hide

      remove problematic junk of code manually and then everything is ok

      Show
      remove problematic junk of code manually and then everything is ok

      Issue has been found in respin-a.

      Choosing other location for a JAX-RS Resource than default package cause leaving this junk of code in resource file

      import ;
      

      Choosing default package do not generate this line of code.

            xcoulon@redhat.com Xavier Coulon
            mlabuda_jira Marián Labuda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: