Comments (5)
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.
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.
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.
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.
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)
- Currently, there is an error in dependency versions that needs to be fixed
- Empty arrays are not supported (they were before)
- Subtypes not deserialized properly
- Dates not deserializing properly
- Subtypes in unions aren't working correctly
- Handle types from different libraries in different directories (packages)
- Make builders better
- Use type discrimination methods in the project, not instanceof....
- Handle inline supertypes.
- Inherited inline type not handled correctly HOT 1
- ids should be used for types, not name parsing.
- Plugin to automatically repackage classes in libraries.
- "Recursive Shapes" need to be addressed.
- Migrate pojo-to-raml to AMF
- Have the builders delegate to AMF
- Figure out facets and annotations with AMF (building)
- Differentiate basic type names from user-defines type names.
- Circular definition of types might have problems.
- Handle examples properly HOT 1
- All type appear inline
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 raml-java-tools.