This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 37994
Collapse All | Expand All

(-)src/org/apache/xerces/parsers/DOMParser.java (-4 / +19 lines)
Lines 140-155 Link Here
140
        this(symbolTable, null);
140
        this(symbolTable, null);
141
    } // <init>(SymbolTable)
141
    } // <init>(SymbolTable)
142
142
143
    private static XMLParserConfiguration getParserConfig() { // XXX added - jglick
144
        Object o = ObjectFactory.createObject(
145
            "org.apache.xerces.xni.parser.XMLParserConfiguration",
146
            "org.apache.xerces.parsers.XML11Configuration"
147
            );
148
        if (o instanceof XMLParserConfiguration) {
149
            return (XMLParserConfiguration)o;
150
        } else {
151
            // something is wrong
152
            Thread.dumpStack();
153
            System.err.println("Got object: " + o);
154
            System.err.println("     class: " + o.getClass().getName());
155
            System.err.println("    loader: " + o.getClass().getClassLoader());
156
            System.err.println(" my loader: " + XMLParserConfiguration.class.getClassLoader());
157
            return new XML11Configuration();
158
        }
159
    }
160
143
161
144
    /**
162
    /**
145
     * Constructs a DOM parser using the specified symbol table and
163
     * Constructs a DOM parser using the specified symbol table and
146
     * grammar pool.
164
     * grammar pool.
147
     */
165
     */
148
    public DOMParser(SymbolTable symbolTable, XMLGrammarPool grammarPool) {
166
    public DOMParser(SymbolTable symbolTable, XMLGrammarPool grammarPool) {
149
        super((XMLParserConfiguration)ObjectFactory.createObject(
167
        super(getParserConfig());
150
            "org.apache.xerces.xni.parser.XMLParserConfiguration",
151
            "org.apache.xerces.parsers.XML11Configuration"
152
            ));
153
168
154
        // set properties
169
        // set properties
155
        fConfiguration.addRecognizedProperties(RECOGNIZED_PROPERTIES);
170
        fConfiguration.addRecognizedProperties(RECOGNIZED_PROPERTIES);

Return to bug 37994