[jira] [Commented] (NETBEANS-3202) Strange behaviour with new text block feature in editor

2019-10-09 Thread Arvind (Jira)


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

Arvind commented on NETBEANS-3202:
--

The expectation of a text block value is, the string *_+has+_* to begin in a 
new line post  “”” ( 3 double quotes) . If one starts to write a char/string 
immediately in the same line after “””( 3 double quotes ) that will be 
considered as a normal string. In this case its behaving like a normal string .

> Strange behaviour with new text block feature in editor
> ---
>
> Key: NETBEANS-3202
> URL: https://issues.apache.org/jira/browse/NETBEANS-3202
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Other
>Affects Versions: 11.2
>Reporter: Benjamin Graf
>Assignee: Arunava Sinha
>Priority: Minor
>
> Write a buggy text block and trying to solve in editor ends up in strange 
> behavior: 
> Reproduce:
> Write new class variable:
> {code:java}
> public static String x = """test""";
> {code}
> trying to correct with line break after the first three double quotes tries 
> to and just another double quote
> {code:java}
> public static String x = 
> + "test""";
> {code}
> Could only be fixed in editor by writing it from scratch (correct JDK 13 
> syntax!).



--
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] [Commented] (NETBEANS-3202) Strange behaviour with new text block feature in editor

2019-10-08 Thread Geertjan Wielenga (Jira)


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

Geertjan Wielenga commented on NETBEANS-3202:
-

Agreed.

> Strange behaviour with new text block feature in editor
> ---
>
> Key: NETBEANS-3202
> URL: https://issues.apache.org/jira/browse/NETBEANS-3202
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Other
>Affects Versions: 11.2
>Reporter: Benjamin Graf
>Assignee: Arunava Sinha
>Priority: Minor
>
> Write a buggy text block and trying to solve in editor ends up in strange 
> behavior: 
> Reproduce:
> Write new class variable:
> {code:java}
> public static String x = """test""";
> {code}
> trying to correct with line break after the first three double quotes tries 
> to and just another double quote
> {code:java}
> public static String x = 
> + "test""";
> {code}
> Could only be fixed in editor by writing it from scratch (correct JDK 13 
> syntax!).



--
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] [Commented] (NETBEANS-3202) Strange behaviour with new text block feature in editor

2019-10-08 Thread Benjamin Graf (Jira)


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

Benjamin Graf commented on NETBEANS-3202:
-

I know it's invalid. But it might be the way people are writing code. And the 
behavior of the editor while writing and correcting this issue is quite odd. :-)

> Strange behaviour with new text block feature in editor
> ---
>
> Key: NETBEANS-3202
> URL: https://issues.apache.org/jira/browse/NETBEANS-3202
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Other
>Affects Versions: 11.2
>Reporter: Benjamin Graf
>Assignee: Arunava Sinha
>Priority: Minor
>
> Write a buggy text block and trying to solve in editor ends up in strange 
> behavior: 
> Reproduce:
> Write new class variable:
> {code:java}
> public static String x = """test""";
> {code}
> trying to correct with line break after the first three double quotes tries 
> to and just another double quote
> {code:java}
> public static String x = 
> + "test""";
> {code}
> Could only be fixed in editor by writing it from scratch (correct JDK 13 
> syntax!).



--
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] [Commented] (NETBEANS-3202) Strange behaviour with new text block feature in editor

2019-10-08 Thread Geertjan Wielenga (Jira)


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

Geertjan Wielenga commented on NETBEANS-3202:
-

See the spec: https://openjdk.java.net/jeps/355

{quote}Here are some examples of ill-formed text blocks:

String a = "";   // no line terminator after opening delimiter
String b = """ """;  // no line terminator after opening delimiter
String c = """
   ";// no closing delimiter (text block continues to EOF)
String d = """
   abc \ def
   """;  // unescaped backslash (see below for escape 
processing){quote}

> Strange behaviour with new text block feature in editor
> ---
>
> Key: NETBEANS-3202
> URL: https://issues.apache.org/jira/browse/NETBEANS-3202
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Other
>Affects Versions: 11.2
>Reporter: Benjamin Graf
>Assignee: Arunava Sinha
>Priority: Minor
>
> Write a buggy text block and trying to solve in editor ends up in strange 
> behavior: 
> Reproduce:
> Write new class variable:
> {code:java}
> public static String x = """test""";
> {code}
> trying to correct with line break after the first three double quotes tries 
> to and just another double quote
> {code:java}
> public static String x = 
> + "test""";
> {code}
> Could only be fixed in editor by writing it from scratch (correct JDK 13 
> syntax!).



--
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] [Commented] (NETBEANS-3202) Strange behaviour with new text block feature in editor

2019-10-08 Thread Geertjan Wielenga (Jira)


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

Geertjan Wielenga commented on NETBEANS-3202:
-

Note: https://dzone.com/articles/jep-355-text-blocks-in-jdk-13

The text cannot start immediately after the opening quotes of the block, i.e., 
your example is invalid:

public static String x = """test""";



> Strange behaviour with new text block feature in editor
> ---
>
> Key: NETBEANS-3202
> URL: https://issues.apache.org/jira/browse/NETBEANS-3202
> Project: NetBeans
>  Issue Type: Bug
>  Components: editor - Other
>Affects Versions: 11.2
>Reporter: Benjamin Graf
>Assignee: Arunava Sinha
>Priority: Minor
>
> Write a buggy text block and trying to solve in editor ends up in strange 
> behavior: 
> Reproduce:
> Write new class variable:
> {code:java}
> public static String x = """test""";
> {code}
> trying to correct with line break after the first three double quotes tries 
> to and just another double quote
> {code:java}
> public static String x = 
> + "test""";
> {code}
> Could only be fixed in editor by writing it from scratch (correct JDK 13 
> syntax!).



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