GWT编译警告

时间:2013-09-10 23:44:51

标签: gwt

当我尝试编译GWT项目时,我收到以下警告:

Specify -logLevel DEBUG to see all errors.
             [java]             
     [WARN] Unknown type 'com.google.gwt.editor.client.SimpleBeanEditorDriver' specified in deferred binding rule
             [java]    Scanning for additional dependencies: jar:file:<GWT_PATH>/2.4.0/gwt-user.jar!/com/google/gwt/cell/client/ButtonCellBase.java
             [java]       Computing all possible rebind results for 'com.google.gwt.cell.client.ButtonCellBase.DefaultAppearance.Template'
             [java]          Rebinding com.google.gwt.cell.client.ButtonCellBase.DefaultAppearance.Template
             [java]             Invoking generator com.google.gwt.safehtml.rebind.SafeHtmlTemplatesGenerator
             [java]                Constructing interface com.google.gwt.cell.client.ButtonCellBase.DefaultAppearance.Template
             [java]                   Generating method body for iconContentLayout()
             [java]                      
    [WARN] Template with variable in CSS attribute context: The template code generator cannot guarantee HTML-safety of the template -- please inspect manually or use Safe
        Styles to specify arguments in a CSS attribute context
             [java]                      
    [WARN] Template with variable in CSS attribute context: The template code generator cannot guarantee HTML-safety of the template -- please inspect manually or use Safe
        Styles to specify arguments in a CSS attribute context
             [java]                   Generating method body for iconWrapper()
             [java]                      
    [WARN] Template with variable in CSS attribute context: The template code generator cannot guarantee HTML-safety of the template -- please inspect manually or use Safe
        Styles to specify arguments in a CSS attribute context
             [java]                      
    [WARN] Template with variable in CSS attribute context: The template code generator cannot guarantee HTML-safety of the template -- please inspect manually or use Safe
            Styles to specify arguments in a CSS attribute context
              [java]    Compiling 6 permutations
              [java]       Compiling permutation 0...
              [java]       Compiling permutation 1...
              [java]       Compiling permutation 2...
              [java]       Compiling permutation 3...
              [java]       Compiling permutation 4...

任何人都可以帮我解决这个警告吗?

1 个答案:

答案 0 :(得分:0)

警告告诉您使用style='{theStyle}'其中theStyle是SafeStyles的实例,而不是使用style='width:{theWidth}'之类的内容来进行CSS格式化。