[
https://issues.apache.org/jira/browse/NETBEANS-3164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16938314#comment-16938314
]
ARUNAVA SINHA edited comment on NETBEANS-3164 at 9/26/19 6:42 AM:
------------------------------------------------------------------
JDK support is available from JDK-13 onward.
If someone is running NB with JDK-13 , by default project created will have
Source/Binary format id JDK-13.(i.e., --source 13). So no issue in running
Text-Block in JDK-13
You will get the same below error if someone tries to compile the file in
JDK-13 in command prompt. but source version is different
<JDK-13_HOME>/bin/java --enable-preview --source 8 NewClass.java
error: invalid source release 8 with --enable-preview
(preview language features are only supported for release 13)
error: compilation failed
Point is NB is not restricting the user from using Text Block in older jdk
source version, restriction is from java itself.
was (Author: arunava.sinha):
JDK support is available from JDK-13 onward.
If someone is running NB with JDK-13 , by default project created will have
Source/Binary format id JDK-13.(i.e., --source 13). So no issue in running
Text-Block in JDK-13
You will get the same below error if someone tries to compile the file in
JDK-13 in command prompt. but source version is different
<JDK-13_HOME>/bin/java --enable-preview --source 8 NewClass.java
error: invalid source release 8 with --enable-preview
(preview language features are only supported for release 13)
error: compilation failed
Point is NB is not restricting the user from using Text Block from older jdk
source version, restriction is from java itself.
> JDK 13 preview feature not working correctly in 11.2beta1
> ---------------------------------------------------------
>
> Key: NETBEANS-3164
> URL: https://issues.apache.org/jira/browse/NETBEANS-3164
> Project: NetBeans
> Issue Type: Bug
> Affects Versions: 11.2
> Environment: Windows 10
> OpenJDK 64-Bit Server VM AdoptOpenJDK (build 13+33, mixed mode, sharing)
> Product Version: Apache NetBeans IDE 11.2-beta1
> Java: 11.0.4; OpenJDK 64-Bit Server VM 11.0.4+11
> Runtime: OpenJDK Runtime Environment 11.0.4+11
> System: Windows 10 version 10.0 running on amd64; Cp1252; de_DE (nb)
> User directory: C:\Users\grafbe\AppData\Roaming\NetBeans\11.2-beta1
> Cache directory: C:\Users\grafbe\AppData\Local\NetBeans\Cache\11.2-beta1
> Reporter: Benjamin Graf
> Assignee: ARUNAVA SINHA
> Priority: Major
> Attachments: image-2019-09-25-20-13-45-510.png
>
>
> Try to build a simple ant based project with a multiline String.
> !image-2019-09-25-20-13-45-510.png|width=500!
>
> Reproduce:
> * Install beta1 from zip with fresh profile
> * Install latest nb-javac 1.7
> * Create new ant based Java project
> * Add multiline String and enable preview via hint (--enable-preview)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists