Friday, April 12, 2013

Q: super-source issue

hi,

I've a question to souper-source with bean validation.
I've an emulated class and GWT has no access to the source of the original class. This class is in use in 'client', 'server', 'shared'.
My first test was to transport this class via RPC to the client and log it to the console.  Runs fine.
Next I put this class into a bean that gets validated via Bean Validation.
Now I get an error from the GWT compiler:
----------------------------------------------------------------------------------------------
[ERROR] An internal compiler exception occurred
[java] com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit
[java]     at com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:109)
[java]     at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:276)
...
...
[java]     at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:640)
...
...
 [java] Caused by: java.lang.NoClassDefFoundError: somepath/classToEmulate
 [java]     at java.lang.Class.getDeclaredMethods0(Native Method)
     [java]     at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
     [java]     at java.lang.Class.getDeclaredMethods(Class.java:1791)
     [java]     at org.hibernate.validator.util.privilegedactions.GetDeclaredMethods.run(GetDeclaredMethods.java:38)

and so on...

The emulated class is just an ordinary enum.
----------------------------------------------------------------------------------------
Can I use emulated classes with bean validation at all?

TIA
Gernot


   

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate