reference to IndexOutOfBoundsException is ambiguous
Posted
by senzacionale
on Stack Overflow
See other posts from Stack Overflow
or by senzacionale
Published on 2010-05-14T12:53:27Z
Indexed on
2010/05/14
12:54 UTC
Read the original article
Hit count: 338
java
ERROR:
reference to IndexOutOfBoundsException is ambiguous, both class com.sun.star.lang.IndexOutOfBoundsException in com.sun.star.lang and class java.lang.IndexOutOfBoundsException in java.lang match
CODE:
public void insertIntoCell(int CellX, int CellY, String theValue,
XSpreadsheet TT1,
String flag) throws IndexOutOfBoundsException {
XCell oCell = null;
oCell = TT1.getCellByPosition(CellX, CellY);
if (flag.equals("V")) {
oCell.setValue((new Float(theValue)).floatValue());
} else {
if (theValue!=null && theValue.length()>0 && theValue.length()!=0) {
oCell.setFormula("'"+(String)theValue.toString());
} else {
oCell.setFormula((String)theValue.toString());
}
}
}
© Stack Overflow or respective owner