You are viewing a plain text version of this content. The canonical link for it is here.
Posted to netcat@netbeans.apache.org by Glenn Holmer <ce...@kolabnow.com> on 2018/04/02 13:11:34 UTC

source level in sample apps

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


Re: source level in sample apps

Posted by Niklas Matthies <ne...@nmhq.net>.
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