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

Wrong Compiler Compliance Level set when creating new ESB Project

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.1.1, 3.2.0.M1
    • 3.1.0.GA
    • esb
    • None

      When new ESB Project is created (File > New > Others > ESB Project) this project has set Compiler Compliance Level to 1.5 (Project > Properties > Java Compiler) even when only Java JDK 1.6 Runtime is specified within workspace.

      Then when user adds new ESB Action to this project (File > New > Others > ESB Action) it generates new class with this content (JBoss ESB Runtime jas to be added to project classpath):

      import org.jboss.soa.esb.actions.AbstractActionPipelineProcessor;
      import org.jboss.soa.esb.helpers.ConfigTree;
      import org.jboss.soa.esb.actions.ActionProcessingException;
      import org.jboss.soa.esb.message.Message;

      public class EsbAction extends AbstractActionPipelineProcessor {
      protected ConfigTree _config;

      public EsbAction(ConfigTree config)

      { _config = config; }

      @Override
      public Message process(Message message) throws ActionProcessingException

      { //ADD CUSTOM ACTION CODE HERE return message; }

      }

      And compiler is complaining about @Override annotation on method process(Message) displaying this error:

      The method process(Message) of type EsbAction must override a superclass method

      Either when Compiler Compliance level is set to 1.6 or Project Facets Java version is set to 6.0 (Project Properties > Project Facets > Java) error disappear.

      I think it should work in the way that when user creates new EBS Action it should be created without errors so Compiler Compliance Level or Project Facets Java should be set properly.

        1. NewActionWizard.java.patch
          1.0 kB
        2. JBIDE-5916.V2.patch
          0.9 kB
        3. JBIDE-5916.patch
          0.6 kB
        4. JBIDE-5916.patch
          0.7 kB
        5. esbwizardpage.gif
          esbwizardpage.gif
          38 kB
        6. esbwizardpage.gif
          esbwizardpage.gif
          39 kB

              bfitzpat_rh Brian Fitzpatrick (Inactive)
              vpakan Vlado Pakan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: