Bug 163466 - VE - argument type mismatch cannot identify subclassed objects as valid
Summary: VE - argument type mismatch cannot identify subclassed objects as valid
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: VE (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: VE Bugzilla inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-05 00:53 EST by Mark Smith CLA
Modified: 2011-06-13 11:37 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Smith CLA 2006-11-05 00:53:06 EST
VE has problems identifying proper arguments passed.  Example:

public class Foo extends JLabel{
  Foo(ChangeListener lister){
     ....
  }
}

So let's say my "visual class" i'm designing in VE looks like this:

public class VEExample implements ChangeListener {
  public void initStuff(){
    Foo f = new Foo(this);
  }
}

I get an error saying I cannot construct Foo() b/c of an "argument type mismatch".  The net effect is I cannot use this Foo widget within VE b/c VE thinks I have not constructed it properly.  

VE works properly if I pass in an object that is the same type of the object in the method/constructor - but not if it's a subclassed one, as shown above.