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

"IllegalArgumentException: Unsupported kind: RECORD" thrown while editing content. JDK 14

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • java - Editor
    • OpenJDK Runtime Environment 14-ea+27-1339

    Description

      Writing below code in the java editor throws IllegalArgumentException.

      public class JDK14Appplication {
      public static void main(String[] args)

      { java.lang.Record t2 = new RECA1.Test2(5, 6); System.out.println("class Inner record value " + t2); }

      }
      class RECA1{
      public record Test2(long i1, int j1) {
      }
      }

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              singh-akhilesh Akhilesh Singh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: