JDK-6476630 : No way to suppress "Sun proprietary api" warning
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 6
  • Priority: P5
  • Status: Closed
  • Resolution: Won't Fix
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2006-09-29
  • Updated: 2011-02-16
  • Resolved: 2006-09-29
Related Reports
Relates :  
Description
A DESCRIPTION OF THE REQUEST :
A new warning about "Sun proprietary api" showed up recently. There seems
to be no way to disable it with SuppressWarnings.

C:\Program Files\sharednet\src>java -version
java version "1.6.0-rc"
Java(TM) SE Runtime Environment (build 1.6.0-rc-b97)
Java HotSpot(TM) Client VM (build 1.6.0-rc-b97, mixed mode, sharing)


JUSTIFICATION :
SuppressWarnings should be able to suppress all warnings.

Comments
EVALUATION The warning about proprietary API means that you should not use the API which causes the warning. Sun does not support such API and the warning will not be suppressible. The intention of this warning is to help developers write portable code that can run on any Java SE implementation. Furthermore, this allows Sun to move proprietary API into a separate module in a future release, when we can take advantage of JSR 277 (deployment modules) and JSR 294 (development modules aka super packages).
2006-09-29