problem parsing with generics with ModelData (Ext-GWT class)

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

problem parsing with generics with ModelData (Ext-GWT class)

Postby mwaschkowski » Thu Aug 14, 2008 7:34 am

Hi,

Really awesome that you put in 1.5 support even before its released. Google is just taking way too long on the release, really happy to see you guys being proactive about it.

I did run into a parsing issue using your latest stable build, I hope this report helps. The code is fine (with warnings about hiding Object) unless "check for 'client' classpath" is checked (ie. on). If checked off, errors go away and project works. If its set to 'on' (and you rebuild), then you get many of the following error messages:

'Object can not be found in source packages. Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly.'

I didn't see any log files.

Please let me know if the details are insufficient.

Thanks,

Mark

PS. would be kinda cool to see the parser respect the hide tags too so that I wouldn't have to turn the feature off necessarily, just 'hide' it.

Here is the source code, you need to have the Ext-GWT lib in your project.

package com.circumail.client.ui.widget;

import java.util.Collection;
import java.util.Map;

import com.extjs.gxt.ui.client.data.ModelData;
import com.google.gwt.user.client.ui.Composite;

public class FieldTemplateComposite extends Composite {

public FieldTemplateComposite() {
// $hide>>$
// create ModelData wrapper
ModelData md = new ModelData() {
public <Object> Object get(String property) {
return null;
}

public Map<String, Object> getProperties() {
return null;
}

public Collection<String> getPropertyNames() {
return null;
}

public <Object> Object remove(String property) {
return null;
}

public <Object> Object set(String property, Object value) {
return null;
}
};
// $hide<<$

}

}


Product: GWT Designer Subscription
Version: 5.1.0.200808140616
Expected: Eclipse 3.3
Actual: Eclipse 3.3.100.v20070530
Actual Eclipse Build Name:
Actual Eclipse Build ID: M20080221-1800
IDE Actual Name: Eclipse
IDE Actual Version: 3.3.3.r33x_r20080129
IDE Actual NL: en_US
Serial Number: GWTDesignerSubscription-01255-0011
Activation Key: GWTDesignerSubscription-KD0TE-FN1AZ-9V6KZ
Physical Address: 00-1A-92-87-39-03
Code Gen: Flat Mode, Use Existing, First Assignment, Make Final
Events: Anonymous Class
GWT Home: C:/java/gwt-windows
Platform Product: Eclipse
Platform Version: 3.3.3.r33x_r20080129
OS Name: Windows XP
OS Architecture: x86
OS Version: 5.1
Priority: Standard
Log Included: No
mwaschkowski
 
Posts: 23
Joined: Mon Jan 21, 2008 8:54 am

Re: problem parsing with generics with ModelData (Ext-GWT class)

Postby mwaschkowski » Thu Aug 14, 2008 11:56 am

Nevermind, this is some other issue, maybe due to beta or something with my config, not sure. It looks like GWT Designer somehow didn't install properly or had an issue with my config. I was having some other problems so I installed eclipse 3.4 fresh and then installed gwt designer and everything working fine now.

Regards,

Mark
mwaschkowski
 
Posts: 23
Joined: Mon Jan 21, 2008 8:54 am

Re: problem parsing with generics with ModelData (Ext-GWT class)

Postby Eric Clayberg » Thu Aug 14, 2008 3:25 pm

If you installed the beta over an an existing installation within Eclipse 3.4, that could definitely be a problem.

Eclipse 3.4 has some major bugs updating plugins, so a clean Eclipse 3.4 install probably took care of it.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 3 guests