[jira] [Comment Edited] (NETBEANS-3164) JDK 13 preview feature not working correctly in 11.2beta1

2019-09-26 Thread ARUNAVA SINHA (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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

/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

/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: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Comment Edited] (NETBEANS-3164) JDK 13 preview feature not working correctly in 11.2beta1

2019-09-26 Thread ARUNAVA SINHA (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16938314#comment-16938314
 ] 

ARUNAVA SINHA edited comment on NETBEANS-3164 at 9/26/19 6:37 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

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

 


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

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

/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: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Comment Edited] (NETBEANS-3164) JDK 13 preview feature not working correctly in 11.2beta1

2019-09-26 Thread ARUNAVA SINHA (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16938314#comment-16938314
 ] 

ARUNAVA SINHA edited comment on NETBEANS-3164 at 9/26/19 6:36 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).

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

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

 


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

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

/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: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Comment Edited] (NETBEANS-3164) JDK 13 preview feature not working correctly in 11.2beta1

2019-09-25 Thread Benjamin Graf (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16937989#comment-16937989
 ] 

Benjamin Graf edited comment on NETBEANS-3164 at 9/25/19 6:44 PM:
--

This sound a bit odd to me. if NetBeans need to run 13 itself, why should I add 
platform JDK and source/target. The IDE shouldn't be bound to the code it 
develops. Hmm...

@[~arunava.sinha]: What do you think?


was (Author: graben):
This sound a bit odd to me. if Netbeans need to run 13 itself, why should I add 
platform JDK and source/target. The IDE shouldn't be bound to the code it 
develops. Hmm... 

> 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: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Comment Edited] (NETBEANS-3164) JDK 13 preview feature not working correctly in 11.2beta1

2019-09-25 Thread Geertjan Wielenga (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16937981#comment-16937981
 ] 

Geertjan Wielenga edited comment on NETBEANS-3164 at 9/25/19 6:36 PM:
--

Maybe also paste here what you see under Help | About, i.e., your environment.

Product Version: Apache NetBeans IDE 11.2-beta1
Java: 13; OpenJDK 64-Bit Server VM 13+33
Runtime: OpenJDK Runtime Environment 13+33
System: Mac OS X version 10.13.6 running on x86_64; UTF-8; en_NL (nb)
User directory: /Users/geertjanwielenga/Library/Application 
Support/NetBeans/11.2-beta1
Cache directory: /Users/geertjanwielenga/Library/Caches/NetBeans/11.2-beta1


was (Author: geertjanwielenga):
Maybe also paste here what you see under Help | About, i.e., your environment.

> 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)
>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: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Comment Edited] (NETBEANS-3164) JDK 13 preview feature not working correctly in 11.2beta1

2019-09-25 Thread Benjamin Graf (Jira)


[ 
https://issues.apache.org/jira/browse/NETBEANS-3164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16937982#comment-16937982
 ] 

Benjamin Graf edited comment on NETBEANS-3164 at 9/25/19 6:36 PM:
--

Found the root cause. NetBeans itself must run under 13 as well. Was 11 before. 
Now it works. Can you try to reproduce this as well? 


was (Author: graben):
Found the root. NetBeans itself must run under 13 as well. Was 11 before. Now 
it works. Can you try to reproduce this as well? 

> 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)
>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: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists