-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AS400DataType: use generics #71
Comments
After a second check, this may not be possible. JTOpen/src/main/java/com/ibm/as400/access/AS400ZonedDecimal.java Lines 450 to 458 in d07b521
|
I think you're right. Generics aren't the answer here. What we need is simply better method signatures. While we can do that in a way that maintains source compatibility, it breaks binary compatibility and will result in We could introduce a second set of functions with proper typesafety, but something just doesn't seem right about that. It's unfortunate that the This is a great issue and one that I'd like to keep open for discussion. Unfortunately, I'm not seeing a good answer right now. :/ |
eg. AS400ZonedDecimal would look like this:
Not sure about binary compatibility. Maybe leaving
toBytes
methods without generics could avoid breaking retrocompatibility?The text was updated successfully, but these errors were encountered: