Reviewers: scottb, zundel,

Description:
Add concrete SourceInfo for varargs in method calls


Please review this at http://gwt-code-reviews.appspot.com/1454801/

Affected files:
  M dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaAST.java


Index: dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaAST.java
===================================================================
--- dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaAST.java (revision 10274) +++ dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaAST.java (working copy)
@@ -2030,7 +2030,8 @@
       }
       JArrayType lastParamType = (JArrayType) typeMap.get(params[varArg]);
       JNewArray newArray =
- JNewArray.createInitializers(SourceOrigin.UNKNOWN, lastParamType, initializers); + JNewArray.createInitializers(call.getSourceInfo().makeChild(), lastParamType,
+              initializers);
       call.addArg(newArray);
     }



--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to