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

hint "Use @NbBundle.Messages" causes casual diff error; corrupts .java file

    XMLWordPrintableJSON

Details

    Description

      In addition to the CasualDiff exception (see attached log), in the java file a chunk of source gets copied to the fix location.

      Attached tiny project that reproduces the problem.

      1. in Menu > Tools > Options > Editor > Hints > NetBeansDevelopment
        enable "Use @NbBundle.Messages" hint
      2. unzip sources; open OptionsPlayHackCasualDiff in IDE
      3. open file OptionsPlayHackOptionsPanelController.java
      4. go to the line with hint,
              keywords = "#OptionsCategory_Keywords_OptionsPlayHack",
        

        and accept the hint "Use NbBundle.Message"

      Observe:

      CasualDiff generated, source file messed up.

      Attachments

        1. OptionsPlayHackCasualDiff.zip
          9 kB
          Ernie Rael
        2. CasualDiff.messages.log
          552 kB
          Ernie Rael

        Activity

          People

            Unassigned Unassigned
            errael Ernie Rael
            Votes:
            0 Vote for this issue
            Watchers:
            5 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 - 1h
                1h