google-code-export / gwtx

Automatically exported from code.google.com/p/gwtx
1 stars 4 forks source link

gwtx works in hosted mode but would not work after compiling #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

HashMap<String, PropertyDescriptor> descriptors = 
    new HashMap<String, PropertyDescriptor>();
try {
    String methodNames = "";
    BeanInfo beanInfo  = Introspector.getBeanInfo(Test.class);
    PropertyDescriptor[] descriptorsArray = 
beanInfo.getPropertyDescriptors();
    for (PropertyDescriptor descriptor : descriptorsArray) {
        descriptors.put(descriptor.getName(), descriptor);
        methodNames += descriptor.getName() + " ";
    }
    Window.alert(methodNames);
} catch (IntrospectionException e) {
    e.printStackTrace();
}

What is the expected output? What do you see instead?
Expect to see an alert window showing all the method names of the test 
class.

What version of the product are you using? On what operating system?
Currently using 1.5.2 with gwt 2.0 on ubuntu.

Please provide any additional information below.
This works if you run it in hosted mode, but nothing will show up after you 
compile it.

Original issue reported on code.google.com by peter.pong.87 on 25 Mar 2010 at 2:07

GoogleCodeExporter commented 9 years ago
Same issue.
Please, remove support for PropertyDescriptor and Introspector from main page 
(until issue will be fixed) - it's save time for many peoples.

GWT 2.2.0, kubuntu, chrome/FF 3

Original comment by vladimi...@gmail.com on 15 Mar 2011 at 8:59