[gme-users] Java JBuilderObject connection

hernandf at cis.uab.edu hernandf at cis.uab.edu
Thu May 20 21:29:56 CDT 2004


In JBuilderObject (Java version of BON), method getOutConnectedObjects,

public boolean getOutConnectedObjects(String name, Vector list[])
	{	Vector conns = getOutConnections(name);
		list[0] = new Vector();
		if(conns==null)
			return false;
		int coCount = conns.size();
		for(int i=0;i<coCount;i++)
		{	JBuilderConnection conn = (JBuilderConnection)
                                                  conns.elementAt(i);
			list[0].addElement(conn.getSource());
		}
		return true;
	}

inf the for loop, instead of being

list[0].addElement(conn.getSource());

i think that it should be
list[0].addElement(conn.getDestination());

with getSource() we get the in connected object instead of the out
connected object.

thanks,

Francisco



--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .




More information about the gme-users mailing list