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.
Sometimes it's necessary to use proprietary API directly, usually as a bug workaround or temporararily solution when prototyping. But during compilation, the infamous warning is emmited: org/jboss/loom/utils/XmlUtils.java:[102,74] com.sun.org.apache.xpath.internal.jaxp.XPathFactoryImpl is internal proprietary API and may be removed in a future release This warning can't be supressed (Sun decided so and never stepped back). And NetBeans stops on this warning and doesn't scroll, and worse, doesn't skip to a real error if it comes. This is really very annoying. Could this particular warning be skipped, perhaps optionally? Or simply skipped, since this problem can be revealed in the Tasks window, or any mainstream Java code checker. Thanks for consideration.
Ugly workaround: try { xpf = (XPathFactory) Class.forName("com.sun.org.apache.xpath.internal.jaxp.XPathFactoryImpl").newInstance(); } catch( Exception ex ){ throw new IllegalStateException("Shouldn't happen: " + ex.getMessage(), ex ); }