Comments (3)
Now still struggling with the question how Feature , when called for serialisation in Jackson,
comes to the decision to check a DATE feature as BIGDECIMAL, BINARY or INT (seems to be a RANDOM decision)
from license3j.
OK, found. "Feature" is not serializable *) by Jackson. Which makes it a bit nasty to dump the license/features to a JSON string.
*) because throwing exeptions in getters (which aren't getters anyway) is a very "creative" approach ...
from license3j.
Jackson serialization tries to use the fields as well as the getters of the object. Jackson thinks the methods starting get
are getters in these cases. They are kind of getters, but not strict Java beans getters. The solution is to tell Jackson not to try to be brighter than it is and to configure the mapper not to use the getters, only the fields.
On this
StackOverflow page, you can get a detailed description of how you can do that. I have not verified that, but this would be the way where I would start to go.
because throwing exceptions in getters (which aren't getters anyway) is a very "creative" approach ...
I understand your frustration, and I am sorry about that. It seemed to be a good idea. But fortunately, many users use this little library, and thus it is not feasible to change it.
from license3j.
Related Issues (20)
- License verification on Ubuntu vs Windows HOT 14
- License file is not closed after reading it HOT 1
- missing class HOT 1
- Exception when use a string with colon HOT 3
- Support for offline licensing HOT 7
- Improve performance by reducing / deferring Stream terminal operations HOT 1
- Sample and How to for new version HOT 1
- java.lang.ClassNotFoundException: javax0.license3j.io.LicenseReader
- A new version with org.bouncycastle:bcprov-jdk15on v1.60 HOT 5
- Question - Warning updating from 1.0.4 to 2.0.1 HOT 3
- License verification when adding a feature after signing. HOT 3
- how to migrate from 2 -> 3 HOT 2
- [ERROR] Key format STRING is unknown HOT 1
- Using network interface names to calculate machine UUID downsides HOT 3
- Wishlist: HOT 1
- Tests fail with JVM 13 and 17 HOT 1
- Trivial attack HOT 1
- [email protected] compatibility to [email protected] HOT 1
- java.security.InvalidKeyException: invalid key format HOT 1
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 license3j.