Local variables unavailable

Hey, I have a problem with an error eclipse gives me while debugging.

Code:

` private Matrix coMatrix(int x){`

rowNum = getRowNum();

colNum = getColNum();

Matrix coMatrix = new Matrix(rowNum-1, colNum-1);

...

It goes into this method and sets rowNum as 3 and colNum as 3.

Then it creates a new Object with the constructor and gives 2 and 2 as parameters.

Here is the constructor code:

Code:

` public Matrix(int rowNum, int colNum){`

m = new double[rowNum][colNum];

}

Now it is supposed to create a 2 dimensional double array with 2 rows and 2 columns.

But here it gives me an error "local variables unavailable" which I don't get.

Can anyone help me?

Thanks in advance.