Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-250

Code-complete corrupts pom.xml when updating dependency version

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.0

    Description

      1. Open a pom.xml in a Maven project
      2. Position the caret inside <version> of a dependency
      3. Hit CTRL+SPACE to bring up code-complete
      4. Select a different version number than what is currently set
      5. If you were changing the version number from 1.6.0 to 1.6.1 then code-complete will change the line from:

      <version>1.6.0</version>

      to:

      <version>1.6.1</version>0</version>

      Essentially, the portion of the version that needs to change gets left behind, along with a trailing </version>

      Expected behavior: Line should read "<version>1.6.1</version>"

      This is a regression relative to version 8.2

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              cowwoc Gili
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m