[ https://issues.apache.org/jira/browse/NETBEANS-5017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jaroslav Tulach updated NETBEANS-5017: -------------------------------------- Description: I tried to apply Convert to Text block refactoring to code in [netbeans-html4j repository|https://github.com/apache/netbeans-html4j/blob/006488782a6d1567eacb080443bcd9329988f323/json/src/test/java/net/java/html/json/ModelProcessorTest.java#L507] 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 {{\"}}. was: 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 {{\"}}. > 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 > Priority: Major > > I tried to apply Convert to Text block refactoring to code in > [netbeans-html4j > repository|https://github.com/apache/netbeans-html4j/blob/006488782a6d1567eacb080443bcd9329988f323/json/src/test/java/net/java/html/json/ModelProcessorTest.java#L507] > 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-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