On 3/5/20 9:42 AM, Geertjan Wielenga wrote:
Probably you don't have JDK 14 set in the project.
It's set to JDK 15, the same as the boot JDK.
Anyway, impossible to help if you don't put a sample project with the
problem somewhere for someone to take a look at.
Actual project is here:
https://github.com/BlueGoliath/Crosspoint
requires Project Panama JDK build from the foreign-jextract branch to build.
Gj
On Thu, Mar 5, 2020 at 4:40 PM Ty Young <youngty1...@gmail.com
<mailto:youngty1...@gmail.com>> wrote:
On 3/5/20 9:18 AM, Geertjan Wielenga wrote:
https://netbeans.apache.org/download/nb113/index.html
Read the above, thanks.
Going by naming <compilerArg> should do the same thing, but it
looks like it doesn't.
Oh well. Preview features are enabled now but records aren't
working. The java.lang.Record class is visible so records are
apart of the JDK, it's just I can't make one:
public record Foo(String x)
{
}
errors on record.
Gj
On Thu, Mar 5, 2020 at 4:12 PM Ty Young <youngty1...@gmail.com
<mailto:youngty1...@gmail.com>> wrote:
Preview features in Netbeans 11.2(and above) aren't being
activated
despite being enabled in the maven build file:
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.2</version>
<configuration>
<release>15</release> <!--
<release>13</release> -->
<compilerArg>--enable-preview</compilerArg>
<compilerArg>--add-modules
jdk.incubator.foreign</compilerArg>
<compilerArg>--open-modules
jdk.incubator.foreign.unsafe</compilerArg>
</configuration>
Or at least there is no indication that it is and I can't
make a record.
Is there a way to tell if preview features are enabled?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
<mailto:users-unsubscr...@netbeans.apache.org>
For additional commands, e-mail:
users-h...@netbeans.apache.org
<mailto:users-h...@netbeans.apache.org>
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists