Ignore:
Timestamp:
2016-05-14T02:38:41+02:00 (4 years ago)
Author:
Don-vip
Message:

see #11924 - Java 9 - JDK-6850612 deprecates Class.newInstance() ==> replace it by Class.getConstructor().newInstance()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/XmlObjectParser.java

    r9983 r10208  
    8383                Class<?> klass = mapping.get(qname).klass;
    8484                try {
    85                     current.push(klass.newInstance());
    86                 } catch (Exception e) {
     85                    current.push(klass.getConstructor().newInstance());
     86                } catch (ReflectiveOperationException e) {
    8787                    throwException(e);
    8888                }
Note: See TracChangeset for help on using the changeset viewer.