1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-03-28 14:56:28 +01:00

Clast cast Exception was thrown.

This commit is contained in:
Alain Magloire 2002-07-22 23:47:19 +00:00
parent 67563f8776
commit 08af81d6df
2 changed files with 8 additions and 2 deletions

View file

@ -31,7 +31,10 @@ public class Archive extends CFile implements IArchive {
}
public IBinary[] getBinaries() {
return (IBinary[])getChildren();
ICElement[] e = getChildren();
IBinary[] b = new IBinary[e.length];
System.arraycopy(e, 0, b, 0, e.length);
return b;
}
public CElementInfo createElementInfo() {

View file

@ -29,7 +29,10 @@ public class CRoot extends CResource implements ICRoot {
}
public ICProject[] getCProjects() {
return (ICProject[])getChildren();
ICElement[] e = getChildren();
ICProject[] p = new ICProject[e.length];
System.arraycopy(e, 0, p, 0, e.length);
return p;
}
public IWorkspace getWorkspace() {