A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/google/google-java-format/issues/1195 below:

Text block formatting bug in 1.25.0 · Issue #1195 · google/google-java-format · GitHub

In 1.25.0 we're seeing text block formatting failing in some cases, for example:

package com.helloworld;

class Foo {
  void foo() {
    var bar = """
        bar\
         bar""";
  }
}

java -jar google-java-format-1.25.0-all-deps.jar Foo.java gives:

Foo.java:error: Something has gone terribly wrong. We planned to make the below formatting change, but have aborted because it would unexpectedly change the AST.
Please file a bug: https://github.com/google/google-java-format/issues/new

=== Actual: ===
package com.helloworld;

class Foo {

    void foo() {
        /*missing*/ bar = "barbar";
    }
}
=== Expected: ===
package com.helloworld;

class Foo {

    void foo() {
        /*missing*/ bar = "bar bar";
    }
}

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4