title: Java 14 Syntax error on token "record", record expected
body: <p>I'm engaged in building something in Java 14.</p>
  
  <p>I wrote a class named for PersonInJava14 shown below.</p>
  
  <pre><code>package recordexample;
  
  public record PersonInJava14(String name, String gender, int age) {}
  </code></pre>
  
  <p>However, it throws an error like this. </p>
  
  <pre><code>Syntax error on token "record", record expected
  </code></pre>
  
  <p>The project is based on Java 14 and can be done essential settings to run it in Java 14.</p>
  
  <p>Here is my setting part.</p>
  
  <p><a href="https://i.stack.imgur.com/mJNHJ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/mJNHJ.png" alt="enter image description here"></a></p>
  
  <p>How can I fix it ?</p>