You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Jaroslav Tulach (Jira)" <ji...@apache.org> on 2020/11/13 07:02:00 UTC
[jira] [Created] (NETBEANS-5017) Broken to text block with
concatentation refactoring
Jaroslav Tulach created NETBEANS-5017:
-----------------------------------------
Summary: Broken to text block with concatentation refactoring
Key: NETBEANS-5017
URL: https://issues.apache.org/jira/browse/NETBEANS-5017
Project: NetBeans
Issue Type: Bug
Components: java - Hints
Affects Versions: 12.2
Reporter: Jaroslav Tulach
Assignee: Akshay Gupta
I tried to apply Convert to Text block refactoring to code in netbeans-html4j repository that looks like this:
{code:java}
private void needsAnArg(String method) throws Exception {
String html = "<html><body>"
+ "</body></html>";
String code = "package x.y.z;\n"
+ "import net.java.html.json.Model;\n"
+ "import net.java.html.json.Property;\n"
+ "import net.java.html.json.OnReceive;\n"
+ "@Model(className=\"XModel\", properties={\n"
+ " @Property(name=\"prop\", type=long.class)\n"
+ "})\n"
+ "class X {\n"
+ " @Model(className=\"PQ\", properties={})\n"
+ " class PImpl {\n"
+ " }\n"
+ " @OnReceive(method=\"" + method + "\", url=\"whereever\")\n"
+ " static void obtained(XModel m, PQ p) { }\n"
+ "}\n";
{code}
The result isn't compilable. Possibly confused by terminal {{\"}}.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists