yyang-talend / gwt-ent

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

reflecting a function with empty parameters #27

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. public void display(){}

2. if i want to do classType.invoke(clientWindow, "display");
does not work
classType.invoke(clientWindow, "display", true); does
3.

What is the expected output? What do you see instead?
how can u invoke with no parameters??

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

Thank you

Please provide any additional information below.

Original issue reported on code.google.com by lama.gh...@gmail.com on 19 Aug 2010 at 1:37

GoogleCodeExporter commented 8 years ago
Hi, lama, I created a new test case for this, there is no problem, could you 
send me some test case for this? Thanks.

Original comment by JamesLuo...@gmail.com on 20 Aug 2010 at 12:05

GoogleCodeExporter commented 8 years ago
Hi, I need to reopen an old issue

Please try this:

Public class x{
private IButton button;
public x(){}

}

It will not compile.
but if u put
Public class x{

public x(){
IButton button;
}

}
it will compile???
The first case will produce stack overflow. I have tried it multiple times.

Original comment by lama.gh...@gmail.com on 20 Aug 2010 at 9:10

GoogleCodeExporter commented 8 years ago
I mean java to javascript compile. Thank you

Original comment by lama.gh...@gmail.com on 20 Aug 2010 at 9:16

GoogleCodeExporter commented 8 years ago
The following is my test case, it's working, could you send me your error 
message and call stack? Thanks.

    @Reflect_Full
    public class SmartGWTComponents3 {
        private com.smartgwt.client.widgets.IButton button;

        public SmartGWTComponents3() {
        }

    }

classType = TypeOracle.Instance.getClassType(SmartGWTComponents3.class);
    assertTrue(classType != null);

Original comment by JamesLuo...@gmail.com on 23 Aug 2010 at 11:15

GoogleCodeExporter commented 8 years ago

Original comment by JamesLuo...@gmail.com on 23 Aug 2010 at 11:24

GoogleCodeExporter commented 8 years ago
This is the stack trace.
[java]  at java.lang.reflect.Method.invoke(Method.java:597)
     [java]     at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispatch(GenerateJavaAST.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.GeneratedMethodAccessor22.invoke(Unknown Source)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:597)
     [java]     at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispatch(GenerateJavaAST.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.GeneratedMethodAccessor22.invoke(Unknown Source)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:597)
     [java]     at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispatch(GenerateJavaAST.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.GeneratedMethodAccessor22.invoke(Unknown Source)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:597)
     [java]     at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispatch(GenerateJavaAST.java:500)
     [java]     at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispProcessStatement(GenerateJavaAST.java:563)
     [java]    [ERROR] Stack overflow; to increase the stack size, use the -Xss flag at startup (java -Xss1M ...)

Original comment by lama.gh...@gmail.com on 24 Aug 2010 at 12:46

Attachments:

GoogleCodeExporter commented 8 years ago
Can you please try my test case. I cannot get it to work. Thank you for you time

Original comment by lama.gh...@gmail.com on 25 Aug 2010 at 9:06