#6: Fail when CSS class has missing GssResource interface method

It's a method in the GssResourceGenerator class. It takes a JMethod as
parameter and returns the style class name associted to this method (look
after annotation if any)


On Tue, Aug 5, 2014 at 3:41 AM, Simon-Pierre Gingras <
notifications@github.com> wrote:

> In src/main/java/com/google/gwt/resources/rg/GssResourceGenerator.java:
>
> > @@ -788,4 +792,23 @@ private boolean writeUserMethod(TreeLogger logger, JMethod userMethod,
> >
> >      return writeClassMethod(logger, userMethod, substitutionMap, sw);
> >    }
> > +
> > +  private void checkForUnknownCssClasses(JMethod method, ExtendedCssTree extendedCssTree)
> > +          throws UnableToCompleteException {
> > +    JClassType returnType = (JClassType) method.getReturnType();
> > +
> > +    JMethod[] methods = returnType.getMethods();
> > +
> > +    ImmutableList.Builder<String> methodNamesBuilder = ImmutableList.builder();
> > +
> > +    for (JMethod jMethod : methods) {
> > +      methodNamesBuilder.add(jMethod.getName());
>
> @jDramaix <https://github.com/jDramaix> the getClassName() method you're
> talking about, where is it defined? It's not part of JMethod's members.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/jDramaix/gss.gwt/pull/53/files#r15791672>.
>