Changeset 2837 in josm


Ignore:
Timestamp:
Jan 13, 2010 9:19:20 AM (3 years ago)
Author:
Gubaer
Message:

see #4358

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/plugins/PluginInformation.java

    r2830 r2837  
    194194        try { 
    195195            try { 
    196                 Constructor<?> c = klass.getDeclaredConstructor(PluginInformation.class); 
     196                Constructor<?> c = klass.getConstructor(PluginInformation.class); 
    197197                Object plugin = c.newInstance(this); 
    198198                return new PluginProxy(plugin, this); 
    199199            } catch(NoSuchMethodException e) { 
     200                // do nothing - try again with the noarg constructor for legacy support 
     201            } catch(InstantiationException e) { 
    200202                // do nothing - try again with the noarg constructor for legacy support 
    201203            } 
Note: See TracChangeset for help on using the changeset viewer.