Bug 231390 - Don't stop output scrolling on "Sun proprietary API" warning
Don't stop output scrolling on "Sun proprietary API" warning
Status: NEW
Product: java
Classification: Unclassified
Component: Compiler
7.3.1
PC Linux
: P3 with 1 vote (vote)
: TBD
Assigned To: Dusan Balek
issues@java
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-17 19:55 UTC by pekarna
Modified: 2013-06-17 22:26 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ); 
   }


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo