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:
parent
67563f8776
commit
08af81d6df
2 changed files with 8 additions and 2 deletions
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue