linkstatic12 / matlabcontrol

Automatically exported from code.google.com/p/matlabcontrol
0 stars 0 forks source link

4.1.0 - Disconnect return value doesn't match javadoc #22

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What version of matlabcontrol are you using?
(Release versions: 4.1.0, 4.0.0, 3.1.0, 3.0.1, 3.0.0, or 2.0.0)
4.1.0

What version of MATLAB are you using?
R2011b

What operating system are you using?
OSX

Are you using matlabcontrol from inside MATLAB or outside MATLAB?
Outside

What steps will reproduce the problem?
1. Run the following sample code:
MatlabProxyFactory factory = new MatlabProxyFactory();
MatlabProxy proxy = factory.getProxy();

proxy.eval("disp('hello world')");

// Use the proxy as desired
System.out .println("disconnected: " + proxy.disconnect());

What did you expect to happen? What happened instead?
I would expect disconnect to print as true based on the javadoc.. but it prints 
as false.

If there was a stack trace, please copy it here.

Please provide any additional information below.
It looks like RemoteMatlabProxy#disconnect() returns #isConnected(), which is 
the reverse of what the javadoc suggests.

I am not sure if there are any other implications of this flag being flipped.

Original issue reported on code.google.com by hin...@gmail.com on 16 Jul 2014 at 8:04