Can the method return an Object []
Object[] line = new Object[sm.getColumnCount()]; for (int i = 1; i < sm.getColumnCount(); i++) line[i--] = rs.getObject(i); rs.close(); connect.close(); return line[]; Judging by the given piece, we are talking about JDBC ...
line[i--] construction, you will have an infinite loop. Probably should have written line[i-1]=rs.getObject(i)Recordset.getObject() will produce a Blob pointer that refers to an InputStream that is meaningless to hold in an ObjectSummary: code is non-working, revision is required
Source: https://ru.stackoverflow.com/questions/131094/
All Articles