kohiro / gwt-ent

Automatically exported from code.google.com/p/gwt-ent
0 stars 0 forks source link

using gwt-ent and smartGWT #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.setting a class to implement reflection that has a smartGWT component
2.
3.

What is the expected output? What do you see instead?
does not compile

What version of the product are you using? On what operating system?
latest download
windows xp

Please provide any additional information below.
reflection with widgets work

Original issue reported on code.google.com by lama.gh...@gmail.com on 16 Aug 2010 at 12:08

GoogleCodeExporter commented 9 years ago
Output of compile:
at 
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispatch(Ge
nerateJavaAST.java:500)
     [java]     at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispProcessStatement(GenerateJavaAST.java:563)
     [java]     at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processStatement(GenerateJavaAST.java:1714)
     [java]     at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:597)

Original comment by lama.gh...@gmail.com on 16 Aug 2010 at 12:09

GoogleCodeExporter commented 9 years ago
Hi, Lama, 

  Thanks for your report, I tested those two but looks it's fine, could you send me your test cases, thanks.

{{{

    public static class SmartGWTComponents1 extends com.smartgwt.client.widgets.IButton implements Reflection {

        public String getSomething() {
            return this.getID();
        }
    }

    @Reflect_Full
    public static class SmartGWTComponents2 extends com.smartgwt.client.widgets.IButton implements Reflection {

        public String getSomething() {
            return this.getID();
        }
    }
}}}

James

Original comment by JamesLuo...@gmail.com on 17 Aug 2010 at 12:02

GoogleCodeExporter commented 9 years ago
I was mistaken. It wasn't because of smartGWT. It was because I was using a 
function that returns null.
Thank you for answering

Original comment by lama.gh...@gmail.com on 17 Aug 2010 at 6:49

GoogleCodeExporter commented 9 years ago
That's Cool, Closed

Original comment by JamesLuo...@gmail.com on 17 Aug 2010 at 6:53