Giter VIP home page Giter VIP logo

Comments (7)

ftomassetti avatar ftomassetti commented on August 16, 2024

To solve this kind of problems normally we try to get just the FQN of a class or interface and do not let ASM solve it. We instead want to ask the TypeSolver to solve it. It could call different JarTypeSolvers if needed.

The error seems due to the fact that we call ctClass.getInterfaces(). We should instead call ctClass.getClassFile().getInterfaces(); that returns an array of Strings, not an array of CtClass. See what we do in solveSymbol, in the same class.

Would be possible for you to submit a failing test? I think the fix should be relatively straightforward with a failing test.

from javasymbolsolver.

bennewi avatar bennewi commented on August 16, 2024

@ftomassetti sure I can submit a test, is that pushing to jss060_fixes branch? I haven't contributed to this project before

from javasymbolsolver.

ftomassetti avatar ftomassetti commented on August 16, 2024

Thank you!

The best way would be to create a new branch starting from the master branch on this project. You could call it "issue362".

If you want directions with git or github just let me know!

from javasymbolsolver.

bennewi avatar bennewi commented on August 16, 2024

yes please, directions even for git CLI would be helpful

from javasymbolsolver.

ftomassetti avatar ftomassetti commented on August 16, 2024
  1. You need to get a recent version of the master branch of this project. Either you clone it ([email protected]:javaparser/javasymbolsolver.git) or you go in a version you have on disk, switch to the master branch (git checkout master) and get the updates (git pull origin master). This is assuming that origin points to [email protected]:javaparser/javasymbolsolver.git. You can check it by running git remote -v. If you do not have it you can add it, for example running git remote add upstream [email protected]:javaparser/javasymbolsolver.git. In this example I called it "upstream", so to get data from it you should run git pull upstream master
  2. At this point you can create a new branch: git checkout -b issue362
  3. Now you add the test
  4. You use git status to check what you have changed, git add <FILENAME> to include the file in the next commit, git commit -m "<DESCRIPTION OF YOUR CHANGES>" to create the commit, git push <YOUR FORK> issue362 to send the branch to your fork.
  5. If you have sent changes before you should have already your fork. If you don't let me know and I will guide you to create one. Once you have the branch in your fork, if you visit this project (https://github.com/javaparser/javasymbolsolver) it should show you a yellow message suggesting you to create a Pull Request. Follow the direction of that message and you are done

from javasymbolsolver.

fvanham avatar fvanham commented on August 16, 2024

See also #326, which I think is the same defect.

from javasymbolsolver.

matozoid avatar matozoid commented on August 16, 2024

Moved this to the new project location.

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.