> From: Mickael Istria <[email protected]> > I may have missed something, but wouldn't the following > implementation be a valid solution? > > public E[] getElements(I inputElement) { > return inputElement.toArray(new E[inputElement.size()]); > }
You can't instantiate arrays of generic type. I think we're digging into too low level detail for this list. I have entered this bug for the particular issue of generic array return types in JFace: https://bugs.eclipse.org/bugs/show_bug.cgi?id=416189 John
_______________________________________________ cross-project-issues-dev mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/cross-project-issues-dev
