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

Custom hint not getting badge

Rank to TopRank to BottomVotersWatch issueWatchersConvert to sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

      Description

      Custom hint, options show it as "WARNING", but no badges. Regression from 11.3.

      "Refactor > Inspect&Transform" work with it.

      Given this file

      package play;
      
      import javax.swing.text.Segment;
      
      public class NewClass
      {
          void t(Segment s, int col)
          {
              char c;
              c = s.array[col + s.offset];
      
              c = s.array[s.offset + col];
          }
      }
      

      and in userdir/config/rules

      <!description="seg.array TO seg.charAt">
      
          $seg.array[$val + $seg.offset]
      ::
          $seg instanceof javax.swing.text.Segment
      =>
          $seg.charAt($val)
      ;;
      
          $seg.array[$seg.offset + $val]
      ::
          $seg instanceof javax.swing.text.Segment
      =>
          $seg.charAt($val)
      ;;
      

       

        Attachments

          Activity

          $i18n.getText('security.level.explanation', $currentSelection) Viewable by All Users
          Cancel

            People

            • Assignee:
              Unassigned
              Reporter:
              errael Ernie Rael

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment