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

wrong Git Blame visualization on String concatenation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 11.0
    • None
    • versioncontrol - Git
    • None
    • w10, jdk 1.8

    Description

      There is a wrong interpretation by the IDE when we press "show annotations".
      I modified a line that is part of Strings concatenation, but I just changed one or 2 lines but the IDE is showing like if I was changed all of them
      https://snipboard.io/3e6io1.jpg

      What we see when checking for diff, here we can see the real changes made
      https://snipboard.io/kWIDMA.jpg

      My guess is because, in Java, all these string concats end up being one line for the compiler, but in regards to Git it's the same.

      Attachments

        1. image-2019-09-23-08-42-46-390.png
          69 kB
          jose luis romero
        2. image-2019-09-23-08-49-59-669.png
          58 kB
          jose luis romero

        Activity

          People

            Unassigned Unassigned
            FiruzzZ jose luis romero
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: