Comments (9)
Thank you for your nice words and for your interest in this project. This project is fairly recent (even if it is almost complete) and bug reports really help me at this point.
In this case I think this is failing because the method invoked use variadic parameters which are not currently handled correctly. In this case you pass an Array of Long to a method taking a Long...
, which is legal but it is one of the few corner features I still need to implement. Let's see if I can find a solution to this one in reasonable time.
from javasymbolsolver.
I have implemented an initial solution but it needs some more work to derive the return type correctly when varargs and generic are used together like in this case.
In the example the return type ot Arrays.toList(T...) depends on the value passed to Arrays.toList and it is not super trivial to derive it.
from javasymbolsolver.
This particular issue should be now solved, but we need far more tests on generics inference and to refactor the code involved with that.
from javasymbolsolver.
Just tested it with my code and it works. It correctly solves Arrays.asList now. Thanks!
from javasymbolsolver.
Great to hear that and thanks for testing it!
from javasymbolsolver.
Btw, any plans on publishing this to the central maven repo?
from javasymbolsolver.
Sure: snapshots are already available on https://oss.sonatype.org/content/repositories/snapshots
from javasymbolsolver.
👍
from javasymbolsolver.
BTW also version 0.1.3 has been released, just in case you need it
from javasymbolsolver.
Related Issues (20)
- NPE when solving ArrayInitializerExpr HOT 1
- CompilationUnitContext.solveType() doesn't handle enum declaration in same C.U. HOT 3
- Cannot resolve field access HOT 2
- Removal of 2 ExpressionStmt's associated to same parent fails when using LexicalPreserving CompilationUnit HOT 4
- Set automatic module name HOT 2
- Anonymous classes supported? HOT 4
- fail if a type is defined in a JAR, but implements an interface defined in another JAR HOT 7
- Type of BinaryExpr is not correctly resolved in certain situations HOT 14
- UnaryExpr failing to resolve BITWISE_COMPLEMENT operator HOT 2
- Resolving types in MethodCallExpr HOT 2
- Archive this repository HOT 8
- JavaParserFacade for ClassOrInterfaceType HOT 6
- Static method solving problem HOT 2
- NoClassDefFoundError while trying to create a JarTypeSolver HOT 3
- Failing to resolve type of some method call receiver expressions HOT 2
- Solve for symbol in scope that is of a given type HOT 2
- Unable to resolve parent class HOT 2
- How to convert a NameExpr to Type? HOT 3
- JSS throws StackOverFlow exception when trying to resolve NameExpr HOT 2
- SymbolSolver is unable to find inheritanced interface type HOT 3
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 javasymbolsolver.