This is part of the sample project's configuration.
See ${nb-install}/java/modules/org-netbeans-modules-java-examples.jar
-> org/netbeans/modules/java/examples/anagrams.zip
-> nbproject/project.properties:
javac.source=1.6
javac.target=1.6
"New project" just creates a copy of the sample project, including project configuration,
and doesn't change anything.
I think it makes sense, when copying, to keep the source level that the sample project was
originally created with, because otherwise a newer source level could result in compiler warnings
or even errors. It might make sense to update the sample projects themselves to Java 1.8,
though.
Niklas
On Mon 2018-04-02 at 08:11h, Glenn Holmer wrote on netcat:
> When creating the Java sample projects "Anagram Game" or "GUI Form
> Examples" under either JDK8 or JDK10, the source level is set to JDK6.
> Shouldn't it default to the level of the JDK you're running under? Is it
> a bug?
>
> --
> Glenn Holmer (Linux registered user #16682)
> "After the vintage season came the aftermath -- and Cenbe."
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: netcat-unsubscribe@netbeans.apache.org
> For additional commands, e-mail: netcat-help@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
---------------------------------------------------------------------
To unsubscribe, e-mail: netcat-unsubscribe@netbeans.apache.org
For additional commands, e-mail: netcat-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
|