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

hint "Use @NbBundle.Messages" bad edit of Bundle.properties

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      ./apisupport/apisupport.refactoring/src/org/netbeans/modules
      /apisupport/hints/UseNbBundleMessages.java:
      "UseNbBundleMessages.displayName=Use @NbBundle.Messages"

      To reproduce:

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

        and accept the hint "Use NbBundle.Message"

      1. the line
                keywords = "#OptionsCategory_Keywords_OptionsPlayHack",
        

        is marked in error. Hover mouse over this line and see

                Save modifications to Bundle.properties before using this hint
        
      1. click on the save button

      Observe:

      • the line is still in error, but now
                No key 'OptionsCategory_Keywords_OptionsPlayHack'
                    found in OptionsPlayHack.Bundle
                Bundle.properties does not contain any key 
                    'OptionsCategory_Keywords_OptionsPlayHack'
        
      • Open the bundle file and note that the remaining line is
                ptionsCategory_Keywords_OptionsPlayHack=keyw1
        

        which is a misspelling, missing initial "O"

      • click undo button twice, see the correct spelling (and deleted line)

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            errael Ernie Rael
            errael Ernie Rael
            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

                Slack

                  Issue deployment