Project

General

Profile

Defect #670

.previewToComponent parameter types

Added by Marc Boegem about 11 years ago. Updated about 11 years ago.

Status:
Rejected
Priority:
Normal
Category:
eclipse
Target version:
-
Start date:
03/22/2013
Due date:
% Done:

0%

Estimated time:
Browser (if web client):

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

#1

Updated by Patrick Talbot about 11 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!

Also available in: Atom PDF