You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using 2.8.0-rc2, a @def statement such as @def DEF_1 #FFF; in a .gss will confuse InterfaceGenerator (gwt:css). The resulting method will be nameed def1, but calling the method will result in the following failure:
[ERROR] The following method [def1()] doesn't match a constant nor a style class. You could fix that by adding .def1 {}
Using DEF_N1 will work successfully.
I first encountered the issue on August 1st using SNAPSHOT.
I'm attaching a maven project to demonstrate the problem. Running mvn clean prepare-package ought to be sufficient. The offending @def is located in DefsImpl.gss.
I'm checking with the guava team if it's the expected behavior. Otherwise, the quick fix could be to change the InterfaceGenerator to use DEF_1 as method name instead of trying to convert the name of the constant to lower camel case when the pattern _[0-9] is detected in the constant name.
If a constant name contains words starting with a numeral (e.g DEF_1),
the InterfaceGenerator generates a method with the constant name in
camel lower case to access the constant (def1())
The CssRessourceGenerator is not able to match the method with the
constant afterwards.
Change-Id: I6469b793cc6372b7e0e2dfa2441c1d8779bbb567
Bug-Link: gwtproject#9401
When using 2.8.0-rc2, a @def statement such as
@def DEF_1 #FFF;
in a .gss will confuse InterfaceGenerator (gwt:css). The resulting method will be nameeddef1
, but calling the method will result in the following failure:[ERROR] The following method [def1()] doesn't match a constant nor a style class. You could fix that by adding .def1 {}
Using
DEF_N1
will work successfully.I first encountered the issue on August 1st using SNAPSHOT.
I'm attaching a maven project to demonstrate the problem. Running
mvn clean prepare-package
ought to be sufficient. The offending @def is located inDefsImpl.gss
.gss-def-interface-generator.zip
The text was updated successfully, but these errors were encountered: