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.

Bug 227838 - Find out what is the binary for TypeElement
Summary: Find out what is the binary for TypeElement
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.4
Hardware: PC Linux
: P2 normal (vote)
Assignee: Svata Dedic
Depends on:
Blocks: 135483
  Show dependency tree
Reported: 2013-03-22 22:46 UTC by Svata Dedic
Modified: 2013-09-02 14:24 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Svata Dedic 2013-03-22 22:46:33 UTC
In code metric inspections, I would like to filter out e.g. dependencies on library classes. Coupling between classes in project (or project dependencies) can be solved, but coupling to ill-designed binary can not - that's why it would be useful to leave such reports out of the inspection results.

In order to find out whether a referenced class comes from a project depenedncy or a library, I need to use SFBQ, but I cannot map the TypeElement back to the URL root from which it was created.

According to offline discussion I could possibly use SourceUtils.getSource(), but that's considered too slow for frequent use. Please provide an alternative with better performance.