Defect #670
.previewToComponent parameter types
0%
Description
.previewToComponent is expecting a JComponent type parameter while in fact the element is of type JPanel.
This will generate a buildmarker.
Trying to get Servoy think it's a JComponent fail as the type JComponent is unknown by Servoy (so will show a buildmarker on the JSDoc)
History
Updated by Patrick Talbot about 12 years ago
- Status changed from New to Rejected
This is Servoy'S DLTK parser being dumb again: a JPanel IS a subclass of JComponent!
I will not make it so that it has to be a JPanel, because you could potentially use any JComponent subclass, and I've used it with JLabel for example and I don't see why I should restrict the type because the parser is too dumb to see that a JLabel or a JPanel can all be casted to JComponent.
So this is NOT a VelocityReport defect but a Servoy one, please open a request on Servoy support and I'll vote for it!