United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6476630 No way to suppress "Sun proprietary api" warning
JDK-6476630 : No way to suppress "Sun proprietary api" warning

Details
Type:
Enhancement
Submit Date:
2006-09-29
Status:
Closed
Updated Date:
2011-02-16
Project Name:
JDK
Resolved Date:
2006-09-29
Component:
tools
OS:
windows_xp
Sub-Component:
javac
CPU:
x86
Priority:
P5
Resolution:
Won't Fix
Affected Versions:
6
Fixed Versions:

Related Reports
Relates:

Sub Tasks

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



Hardware and Software, Engineered to Work Together