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.
If I remove import an compile error occurs. See attachment.
Created attachment 44909 [details] Warning: Forbidden Package
I cannot see anything wrong. The forbidden package warning (it's only warning, the code is compilable) is shown since in most cases it's not good to import form sun.* package because of compatibility with other vendors JDKs. If it's intended you can customize this hint in options dialog: either disable hint at all or set different pattern for forbidden packages.
I change this to 'ENHANCEMENT'. Please change the message to something like: "Sun proprietary API and may be removed in a future release". The message should correspond to the compiler's message. "Forbidden" is too rigorous. > If it's intended you can customize this hint in options dialog: ... IMHO this customization is more useful on project's scope. In my case it's annoying because I'm fixing bugs in sun.jdbc.odbc.** (See: https://jdbc-odbc-enhanced.dev.java.net/), but in other project's I would respect this hint. Above all it's determined to all sun.** packages. Which patterns are allowed? Can I define something like: "sun.**; -sun.jdbc.odbc.**;"