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

Code Generator unable to add method to enum constants

    XMLWordPrintableJSON

    Details

      Description

      Based on:
      https://netbeans.org/bugzilla/show_bug.cgi?id=271633

      reported by Gili

      Consider code like this:

      package javaapplication1;

      public enum E {
      A
      {

      };
      }

      Place the caret between the { } of the enum constant, invoke code completion and try to override toString(). This will fail, and the method won't be added.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jlahoda Jan Lahoda
                Reporter:
                jlahoda Jan Lahoda
              • Votes:
                2 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 - 6h 50m
                  6h 50m