• Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Major Major
    • 4.3.1.Final
    • None
    • None
    • None
    • MA Sprint 16, MA Sprint 17, MA Sprint 18, Sprint 19, Sprint 20, Sprint 21, Sprint 22

      We tested that quickfixes in rules with parameters (e.g. https://github.com/m-brophy/windup-rulesets/blob/master/rules-reviewed/camel3/camel2/java-generic-information.windup.xml#L48) do not work with the IDE plugin.

      Please remove the parameters from the patterns in Camel rules wherever there's a quickfix pattern with parameters.

      Example.
      The current quickfix:

      <quickfix type="REPLACE" name="Support-replace">
          <replacement>org.apache.camel.support.{SupportClass}</replacement>
          <search>org.apache.camel.impl.{SupportClass}</search>
      </quickfix>
      

      could be changed to become

      <quickfix type="REPLACE" name="Support-replace">
         <replacement>org.apache.camel.support.</replacement>
         <search>org.apache.camel.impl.</search>
      </quickfix>
      

      and work effectively.

      It has been verified that the quickfix is applied only in the code identified from the rule so even if a generic pattern is provided (like "org.apache.camel.support." without the class), then the quickfix will affect only the code found by the rule the quickifx belongs to.

              mbrophy Mark Brophy
              mrizzi@redhat.com Marco Rizzi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: