Comments (6)
This case is not currently covered. Thank you for reporting this bug.
from javaparser.
OK, thank you for your reply.
from javaparser.
This is not trivial, because to resolve the println(..) method Javaparser has to resolve the type of the parameter, which is undefined at this stage. I don't see any precision on this point in the JLS. If you can clarify what needs to be done, I can try to resolve this bug quickly.
public class Lambda {
interface MyInterface {
void doSomething(int a);
}
void test(){
MyInterface myInterface;
myInterface = arg -> System.out.println(arg);
}
}
Decompiling the class doesn't provide any information either.
Compiled from "Lambda.java"
public class Lambda {
public Lambda();
Code:
0: aload_0
1: invokespecial #1 // Method java/lang/Object."<init>":()V
4: return
void test();
Code:
0: invokedynamic #2, 0 // InvokeDynamic #0:doSomething:()LLambda$MyInterface;
5: astore_1
6: return
}
from javaparser.
Thanks, we try to distinguish function overloading by getting the QualifiedSignature of MethodCallExpr and get its method descriptor.
from javaparser.
Please don't mix issues.
from javaparser.
Sorry, I'll create a new issue.
from javaparser.
Related Issues (20)
- Fail to use symbol resolver HOT 8
- Arbitrary new line when refactoring HOT 4
- JavaParser finds "." in place of first element after a yeild statement. HOT 12
- Missing tokens in parent nodes HOT 4
- Spotless formatting implementation proposal HOT 13
- Tests systematically failing on Windows HOT 4
- <enum>::values() can not be resolved without the enum name HOT 3
- Azul distribution supports versions 8, 11, 17, 21, and 22 only
- Use Builder Pattern to refactor javaparser HOT 1
- Incorrect resolution of extends and implements types
- An StackOverflowError occurred while parsing HOT 1
- Problems parsing SwitchExpr with Unary/BinaryOperators HOT 5
- LexicalPreservingPrinter does not support unexpected token
- What does "UnknownType" represent HOT 2
- Endless recursion (-> StackOverflow) with cyclic static references HOT 12
- bad code formatter HOT 8
- Cant build HOT 2
- Classic switch broken HOT 12
- How to distinguish whether the Scope of MethodCallExpr is a class or a variable or field? HOT 5
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 javaparser.