Code Monkey home page Code Monkey logo

Comments (9)

ftomassetti avatar ftomassetti commented on August 25, 2024

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.

ftomassetti avatar ftomassetti commented on August 25, 2024

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.

ftomassetti avatar ftomassetti commented on August 25, 2024

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.

Pouja avatar Pouja commented on August 25, 2024

Just tested it with my code and it works. It correctly solves Arrays.asList now. Thanks!

from javasymbolsolver.

ftomassetti avatar ftomassetti commented on August 25, 2024

Great to hear that and thanks for testing it!

from javasymbolsolver.

Pouja avatar Pouja commented on August 25, 2024

Btw, any plans on publishing this to the central maven repo?

from javasymbolsolver.

ftomassetti avatar ftomassetti commented on August 25, 2024

Sure: snapshots are already available on https://oss.sonatype.org/content/repositories/snapshots

from javasymbolsolver.

Pouja avatar Pouja commented on August 25, 2024

👍

from javasymbolsolver.

ftomassetti avatar ftomassetti commented on August 25, 2024

BTW also version 0.1.3 has been released, just in case you need it

from javasymbolsolver.

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.