| Abstract class with generics [message #730849] |
Thu, 29 September 2011 06:56  |
Andreas Messages: 2 Registered: September 2011 |
Junior Member |
|
|
Hello !
I'm working with Swingbuilder 3.6 on IBM® Rational® Developer for System z® mit Java
Version: 8.0.1.
I create an abstract class with the following constructor:
public AbstractCobolSearchPanel(Class<? extends T> classOfT, U fachlogik, boolean showToolbar, boolean showMessageLine, KkvsWorkspace parent)
and use it in this implementation:
public KV94SearchPanel(KV9401CobolService fachlogik, KkvsWorkspace parent)
throws BackendException {
super(KV9401CompositeBean.class, fachlogik, true, true, parent);
If i open the panel in SwinBuilder i got the message:
WindowBuilder was not able to find constructor with signature <init>(java.lang.Class,de.kbs.framework_pt.persistence.service.KV9401CobolService,boolean,boolean,de.kbs.kkvsframework.gui.mainwindow.KkvsWorkspace) in de.kbs.kkvsframework.gui.panel.AbstractCobolSearchPanel.
Is it not possible to work with generics in constructors ?
Thank's Andreas
|
|
|
|
| Re: Abstract class with generics [message #735058 is a reply to message #730849] |
Mon, 10 October 2011 15:49  |
Eric Clayberg Messages: 737 Registered: July 2009 Location: Boston, MA |
Senior Member |
|
|
Using generics in constructors should work fine.
If you are using WB 8.0.1, that is very old. Please try it again using the most recent v1.1 release from Eclipse.
If you are still having problems, please submit a complete bug report to Bugzilla (Tools > WindowBuilder). Include a complete test case and your complete Eclipse .metadata ".log" file and Eclipse configuration.
|
|
|
Powered by
FUDForum. Page generated in 0.01523 seconds