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.

Bug 231390

Summary: Don't stop output scrolling on "Sun proprietary API" warning
Product: java Reporter: pekarna <pekarna>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.3.1   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

Description pekarna 2013-06-17 19:55:09 UTC
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.
Comment 1 pekarna 2013-06-17 22:26:01 UTC
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 ); 
   }