ARUNAVA SINHA commented on NETBEANS-3164:

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).

You will get the same below error if someone tries to compile the file in 
JDK-13 in command prompt.

<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

To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:

Reply via email to