Giter Club home page Giter Club logo

Comments (5)

kevinduffey avatar kevinduffey commented on July 29, 2024

So I figured out the problem.. sort of.. I am using this library within a spring boot application, which bundles an earlier version of joptsimple library (4.6) that is apparently found first on the classpath. One thing about providing a library like this is the concern of any dependencies being part of projects that use this library.. with diff versions of those dependencies. It would be good to provide some sort of disclaimer that indicates the dependencies/versions and how if those same libraries are used in a project also using this library, there could be runtime classpath issues.

from raml-java-tools.

jpbelang avatar jpbelang commented on July 29, 2024

It's not my library (although I use it). It's used by a library used by the parser (it's two or three levels removed). I'll try to remove it from my library (honestly, I'm not really tied to it: I'm using it only to join strings...).

My code now uses Guava. Hope it helps.

from raml-java-tools.

kevinduffey avatar kevinduffey commented on July 29, 2024

That may work. However, this is one of those sad issues with Java and using libraries that use other libraries that you may use inadvertently... version/classpath hell. What I cant seem to find good info on his.. how can I have one library that uses version 1.. use version 1.. while another library that needs version 2 just use version 2. I did a full blown eclipse style plugin engine years ago, and the whole class loading order made a difference. In our engine, we had plugins first find libraries within its own path before reaching outside. That allowed each plugin to use the same library with different versions without runtime issues. In this case... I suspect your update should fix it... assuming Spring doesnt use a wrong version of guava :D

from raml-java-tools.

jpbelang avatar jpbelang commented on July 29, 2024

There is not enough beer in the world to discuss this :-)

Java 9 addresses some of these issues. So does OSGi. They both come with their own set of issues....

from raml-java-tools.

kevinduffey avatar kevinduffey commented on July 29, 2024

So I grabbed the repo, built the library, added your changes, and ran a test... works. Simple User type, but it generates the java code with equals and hash.

from raml-java-tools.

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.