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

Summary: Find out what is the binary for TypeElement
Product: java Reporter: Svata Dedic <sdedic>
Component: SourceAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 7.4   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 135483    

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.