Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
12.2
-
None
-
None
Description
I tried to apply Convert to Text block refactoring to code inĀ netbeans-html4j repository that looks like this:
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";
The result isn't compilable. Possibly confused by terminal \".