| Summary: | [otmodel] NPE in SourceRefElement.getAnnotations() at hover for callout binding | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] Objectteams | Reporter: | Stephan Herrmann <stephan.herrmann> | ||||
| Component: | OTDT | Assignee: | Stephan Herrmann <stephan.herrmann> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | ||||||
| Version: | 0.7 | ||||||
| Target Milestone: | 0.7.1 | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Stephan Herrmann
Created attachment 179156 [details]
Fix with one test
Fixed by these steps:
* include annotations in transformations by SourceElementNotifier and
CompilationUnitStructureRequestor
* don't let MethodMapping.getAnnotation(s) delegate to the IMethod -
meanwhile MethodMappings are JavaElements and support getElementInfo()
directly.
BTW: we might want to reconsider class MethodMappingInfo, which essentially
duplicates ISourceElementRequestor.MappingInfo and subclasses.
However, such changes would need to respect ClassFileInfo which currently
uses MethodMappingInfo for creating method mappings from bytecode attributes.
Fix has been committed as r823 / r824. Verified using I201009211735 . |