Comments (7)
Hey TheSilentPro,
this seems to happen since the values in your List are not represented as a Long internally.
Since Lists in Java can only store primitives and the Wrappers of primitive types can't be casted to each other this exception is thrown.
We have implemented behavior to handle this in our primitive getters but not yet in Lists.
If you have any suggestion on how to improve SimplixStorage in this regard I would be more than happy to implement it.
Maybe some sort of a getList: List with a mapper function that maps a raw value to T would be helpful (But could also be
implemented manually)
If you feel like it is helpful to chat with us in realtime to get this improved feel free to join our discord: discord.simplixsoft.com.
Regards,
Leonhard
from simplixstorage.
Any further questions?
from simplixstorage.
Nope, that would be all, just want to be notified when this is fixed :)
from simplixstorage.
I am sorry for the late response - I am currently in my final exams in school.
I still don't exactly understand where this is an issue of SimplixStorage. What exactly do you want to change?
The exception you are currently getting is caused by the way the data is read by the background library SimplixStorage is using - It seems to be recognized as an Integer, not as a Long.
As stated above we would need to convert every value in the List manually which would require some computation time.
Regards,
Leonhard
from simplixstorage.
No problem i am also doing finals soon and i dont actually fully remember what the issue is.
I think i was trying to use the longs you get from longList and loop through them but since they are read by integers it looks like its throwing that error.
And wouldn't this be a problem if it is an actual long but it recognizes it as an Integer. Because longs can be higher than integers so wouldn't that be somewhat an issue
Basically i am trying to get a list of longs but it looks like its returning a list of Integers instead. Trying to loop through them causes those errors.
from simplixstorage.
Well it looks like its just of a different data type. getIntergerList should do the job.
from simplixstorage.
Well it looks like its just of a different data type. getIntergerList should do the job.
not all longs can be an interger though? So storing a long that isn't an int when trying to retrieve it will result in an error..
from simplixstorage.
Related Issues (20)
- Jar download HOT 2
- Use of custom serialization objects HOT 2
- Unsupported class file major version 60 when compiling in java 16 HOT 1
- Toml comments are not preserved HOT 2
- Error when using the reload callback HOT 2
- Add Toml comment preservation and header methods HOT 4
- HOCON config support HOT 2
- Config(yaml) has broken edit with UTF-8 Characters HOT 3
- Split code base into modules HOT 1
- Comments dissappear when adding defaults. HOT 2
- Supporting comments and preserving comments in a file TOML HOT 1
- Wiki is outdated HOT 1
- Discord invite invalid HOT 1
- Latest release shows wrong version in maven HOT 1
- Need some help HOT 2
- Rethrow exceptions HOT 1
- Yaml#addDefaultsFromInputStream messes the order of keys even if the DataType is sorted
- Does not generate files
- Dot in key create problem with FlatFile HOT 1
- Request for future updates 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 simplixstorage.