When I set the package prefix on my source directory, I get the error "declared package does not match expected package" on my gwt classes.
Specifically:
Create a new project with the source directory src.
Set the package prefix on that directory to "com.mycompany." (or anything not .).
Create the GWT Sample Application
Create a GWT run config.
Try to run it. See the "declared package does not match expected package"