ictvmt / mvp4g

Automatically exported from code.google.com/p/mvp4g
0 stars 0 forks source link

Class.forName(...) shouldn't be used in the framework #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When Class.forName(...) is called, it creates a class object thanks to the 
name but it also instantiates all static attributes of the class.
If one of the attribute needs a call to GWT.create(...), an error will be 
thrown and the application won't be loaded.

Instead of using this method, use:
context.getTypeOracle().findType( typeName );

Original issue reported on code.google.com by plcoir...@gmail.com on 28 Oct 2009 at 2:50

GoogleCodeExporter commented 8 years ago

Original comment by plcoir...@gmail.com on 16 Nov 2009 at 8:08