GithubHelp home page GithubHelp logo

Comments (5)

bzz avatar bzz commented on August 23, 2024 1

Issue description updated to include short example.

from java-driver.

creachadair avatar creachadair commented on August 23, 2024

Specifically this method:

  public Scope scope(final String name) {
    return block(asyncBucket.scope(name)
      .thenApply(asyncScope -> new Scope(asyncScope, asyncBucket.name()))
    );
  }

Repro link: http://play.bblf.sh/daschl/d48c3ad4995ae9ec85f2888e0f2587ac/raw/36f03738ed1a5cbe5211f1999e46a3cf14c35b08/Bucket.java

from java-driver.

creachadair avatar creachadair commented on August 23, 2024

Here is a minimal repro:

package pkg;
public class C {
  public void method(final String str) {}
}

Specifically, removing the final keyword from the parameter declaration of method makes the problem go away.

from java-driver.

bzz avatar bzz commented on August 23, 2024

Was rised in a community slack today again.

I'm going to look into this later this week, if @dennwc (who is assignee in this issue for now) is not fixing it earlier.

from java-driver.

bzz avatar bzz commented on August 23, 2024

The issue is due to the fact that method argument modifiers array is always assumed to be nil, which is not the case when final is there.

Thus transformation MethodDeclaration -> uast:FunctionGroup does not happen for such cases.
Simples fix is to keep the same behavior of not preserving the modifiers but make the transformation happen.

Subsequent work should be done, introducing a proper schema for this case e.g by adding some extra node as discussed in bblfsh/sdk#361

from java-driver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.