0

当我尝试编译我的 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...

谁能帮我解决这个警告?

4

1 回答 1

0

警告告诉你在style='{theStyle}'哪里使用 theStyle 是 SafeStyles 的一个实例,而不是使用类似style='width:{theWidth}'CSS 格式的东西。

于 2013-09-10T23:49:06.820 回答