Community
Participate
Working Groups
Build Identifier: Suppose you have a class: class Foo { … } and another one: public class Bar { public Foo foobar() { … } } This should raise a warning on the foobar method, that it exposes a non-public type. Netbeans already has this feature. They raise a "Exporting non-public type through public API" warning: http://hg.netbeans.org/main/file/3547a4cb9429/java.hints/src/org/netbeans/modules/java/hints/ExportNonAccessibleElement.java Reproducible: Always
The compiler has no notion of public API. Are you using API Tooling for your project? This would be detected as an API leak. Moving to PDE/API Tooling
Seems you got me wrong to a large extend. I'd lime to see this warning raised in a plain Java project, nothing PDE related here. I know this is not a "real" compiler warning. But as it is quite near to the type system, it think it would be quite useful. On the other hand one could argue that this should be caught by Findbugs or the like. So you should either close it as invalid or move it back to JDT ;).
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.
Please remove the stalebug flag, if this issue is still relevant and can be reproduced on the latest release.