Author: [EMAIL PROTECTED]
Date: Fri Oct 3 17:26:30 2008
New Revision: 3708
Modified:
trunk/dev/core/src/com/google/gwt/dev/jdt/WebModeCompilerFrontEnd.java
Log:
This is a better way to find the appropriate no arg constructor; in some
circumstances the original code would erroneously return a superclass
constructor.
Review by: spoon (TBR)
Modified:
trunk/dev/core/src/com/google/gwt/dev/jdt/WebModeCompilerFrontEnd.java
==============================================================================
--- trunk/dev/core/src/com/google/gwt/dev/jdt/WebModeCompilerFrontEnd.java
(original)
+++ trunk/dev/core/src/com/google/gwt/dev/jdt/WebModeCompilerFrontEnd.java
Fri Oct 3 17:26:30 2008
@@ -165,9 +165,7 @@
continue;
}
// Look for a noArg ctor.
- MethodBinding noArgCtor =
type.getExactMethod("<init>".toCharArray(),
- TypeBinding.NO_PARAMETERS, cud.scope);
-
+ MethodBinding noArgCtor =
type.getExactConstructor(TypeBinding.NO_PARAMETERS);
if (noArgCtor == null) {
FindDeferredBindingSitesVisitor.reportRebindProblem(site,
"Rebind result '" + typeName
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---