Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5017

Broken to text block with concatentation refactoring

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 12.2
    • None
    • java - Hints
    • 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 \".

      Attachments

        Activity

          People

            akshay_gupta Akshay Gupta
            jtulach Jaroslav Tulach
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: