< prev index next >

src/java.desktop/share/classes/com/sun/beans/decoder/DocumentHandler.java

Print this page

        

@@ -278,11 +278,12 @@
      */
     @Override
     public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
         ElementHandler parent = this.handler;
         try {
-            this.handler = getElementHandler(qName).newInstance();
+            this.handler =
+                getElementHandler(qName).getDeclaredConstructor().newInstance();
             this.handler.setOwner(this);
             this.handler.setParent(parent);
         }
         catch (Exception exception) {
             throw new SAXException(exception);
< prev index next >