Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reflecting a function with empty parameters #27

Open
GoogleCodeExporter opened this issue Aug 8, 2015 · 7 comments
Open

reflecting a function with empty parameters #27

GoogleCodeExporter opened this issue Aug 8, 2015 · 7 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

I mean java to javascript compile. Thank you

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

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

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

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant