Skip to content
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

Wrong Implementation setValue of DoubleArrayTimestampHandler #27

Open
simongregorebner opened this issue Oct 21, 2016 · 0 comments
Open

Comments

@simongregorebner
Copy link
Contributor

I’ve just noticed a bug on JCAE, I have no time to make a pull request today, I can do it when I’m back:
In class DoubleArrayTimestampHandler:

                @Override
                public <E> void setValue(Channel channel, E value) throws CAException {
                                channel.put(((DoubleTimestamp) value).getValue());
                }

                @Override
                public <E> void setValue(Channel channel, E value, PutListener listener) throws CAException {
                                channel.put(((DoubleTimestamp) value).getValue(), listener);
                }

Should be

                @Override
                public <E> void setValue(Channel channel, E value) throws CAException {
                                channel.put(((DoubleArrayTimestamp) value).getValue());
                }

                @Override
                public <E> void setValue(Channel channel, E value, PutListener listener) throws CAException {
                                channel.put(((DoubleArrayTimestamp) value).getValue(), listener);
                }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant