Uploaded image for project: 'WINDUP - Red Hat Application Migration Toolkit'
  1. WINDUP - Red Hat Application Migration Toolkit
  2. WINDUP-3211

IDE- Quickfix improvements - Apply multiple quickfixes to same line and dealing with XML Tags

XMLWordPrintable

    • False
    • False
    • Hide
      * *Why we missed the bug?*
       ** Pick to proper answer from drop-down field upper.
       +_Additional comments:_+


       * *What is required:*
       ** Pick to proper answer from drop-down field upper.
       +_Additional comments:_+
      Show
      * *Why we missed the bug?*  ** Pick to proper answer from drop-down field upper.  +_Additional comments:_+  * *What is required:*  ** Pick to proper answer from drop-down field upper.  +_Additional comments:_+
    • ---
    • ---
    • Sprint 212 AMM, Sprint 213 AMM, Sprint 214 AMM
    • None

      Related to javax to jakarta rules. In particular the https://github.com/windup/windup-rulesets/blob/master/rules-reviewed/eap8/eap7/javaee-to-jakarta-namespaces.windup.xml

      We are aware of some challenges relating to applying multiple quickfixes to XML files.
      It is something we need to improve within our IDEs particularly VSCode.
      So the 'strategy' for the rules is to try to identify every aspect of an XML element that needs to change as part of the migration.

      http://xmlns.jcp.org/xml/ns/javaee/application_8.xsd" version="8

      So the schema path, the schema name and the version attribute.
      The problem that we have is that the quick-fixes rely upon the analysis providing a line number and a position on that line for the find/replace.
      However when dealing with xml files the analysis can only provide the start point of the parent tag. And applying multiple different quick fixes to parts of the same tag further complicates matters, because even if the position values were correct from the analysis, then they might vary when quickfixes are applied serially.

      So in 5.3 we are going to invest in the IDE plugins/extensions to get the quick-fix capabilities improved.

              josteele John Steele
              pcattana Philip Cattanach
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: