Comments (5)
Issue description updated to include short example.
from java-driver.
Specifically this method:
public Scope scope(final String name) {
return block(asyncBucket.scope(name)
.thenApply(asyncScope -> new Scope(asyncScope, asyncBucket.name()))
);
}
from java-driver.
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.
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.
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)
- Keyword not supported: default HOT 2
- Java driver fails to parse big generated file HOT 2
- Support for private methods in interfaces (Java 9+)
- semantic: string literal escape sequence handing HOT 3
- NumberLiteral doesn't return token HOT 4
- Support for modifers in method arguments
- Node position offset is not bytes HOT 6
- Native driver crashed
- I/O timeout
- Unexpected character
- Premature EOF
- Some method declarations are not converted
- Javadoc fragment are not exposed as Comments
- driver fails when trying to parse java file HOT 1
- Driver throws exception when writing response
- FailedPrecondition error on unhandled value
- Slow driver (compared with the Go one) HOT 10
- Noop role coverage
- Empty switch statements aren't supported HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from java-driver.