Revision: 5874
Author: [email protected]
Date: Tue Aug  4 12:11:42 2009
Log: Fixes a build break on javac sun jdk1.6.0.
Patch by: spoon, kprobst


http://code.google.com/p/google-web-toolkit/source/detail?r=5874

Modified:
   
/trunk/dev/core/src/com/google/gwt/dev/js/JsSourceGenerationVisitorWithSizeBreakdown.java

=======================================
---  
/trunk/dev/core/src/com/google/gwt/dev/js/JsSourceGenerationVisitorWithSizeBreakdown.java
        
Tue Aug  4 09:54:58 2009
+++  
/trunk/dev/core/src/com/google/gwt/dev/js/JsSourceGenerationVisitorWithSizeBreakdown.java
        
Tue Aug  4 12:11:42 2009
@@ -55,7 +55,7 @@
    public SizeBreakdown getSizeBreakdown() {
      return new SizeBreakdown(out.getPosition(), sizeMap);
    }
-
+
    @Override
    public boolean visit(JsBlock x, JsContext<JsStatement> ctx) {
      printJsBlock(x, false, true);
@@ -113,7 +113,12 @@
      sizeMap.put(nameToBillTo, oldSize + chars);
    }

-  private JsName nameToBillTo(JsVisitable<?> node) {
+  /**
+   * If parameter is JsVisitable<?>, javac version sun jdk1.6.0 complains  
about
+   * incompatible types.
+   */
+  @SuppressWarnings("unchecked")
+  private JsName nameToBillTo(JsVisitable node) {
      if (node instanceof JsStatement) {
        JsStatement stat = (JsStatement) node;
        JReferenceType type = map.typeForStatement(stat);

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

Reply via email to