Jeanne Boyarsky wrote:Steven,
Welcome to CodeRanch! That could happen if one class subclasses another depending on how you are calling it.
Can you show some code? In fact the act of simplifying your code so you can post a small example may give you a hint.
-------------------------------------------------------------------------------------
Jeanne. The Grid class and the DataReaderWriter class are as far as I know independent. As is the Faults class which
provides the data to the Grid class (Sorry about how confusing this is.)
Here is the Grid method call:
public boolean imposeFaults(Faults Fin) {...)
Where F is a class containing the data which
is first read from disk as double [][];
But after calling impose Faults() I find myself in
the DataReaderWriter() method:
public double [][] readFaults(String fileName) {..}
where fileName is the name of the
disk file where the data is stored. Yes
DataReaderWriter "knows" fileName but why
I jump into that method I not know.
So in some sense there are 3 classes involved
but up until yesterday they were independent!
Important but not previously mentioned is
that this same sequence, read data, put it
in a Faults object and then call Grid.imposeFault(Faults F)
is done in other software I have developed where
it still works! So, it is something about the
new code which I can not publish here without
giving away trade secrets.
Steven