| Summary: | UseReportConverter prints out reference plus value(s) for "API patterns" | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] PDE | Reporter: | Peter Parapounsky <pjparapo> | ||||||
| Component: | API Tools | Assignee: | Michael Rennie <Michael_Rennie> | ||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | Olivier_Thomann | ||||||
| Version: | 4.0 | ||||||||
| Target Milestone: | 3.7 M5 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
Created attachment 187163 [details]
Proposed fix
Michael, please verify. Created attachment 187164 [details]
Proposed fix
Same as before but with copyrights update.
+1 applied patch to HEAD |
Build Identifier: 3.7M4 To reproduce: 1. Run the API Use Ant Task with attribute: apipatterns=".*" 2. Convert the XML report to HTML using the API Use Report Conversion Ant Task. The resulting HTML will report the used API patterns as : API Patterns: [Ljava.lang.String;@b524aa.* I looked at the code and the problem appears to be in class UseReportConverter, where the API patterns string array is appended directly: String[] patterns = this.metadata.getApiPatterns(); if(patterns != null) { buffer.append(this.metadata.getApiPatterns()); for (int i = 0; i < patterns.length; i++) { buffer.append(patterns[i]).append(BR); } } Reproducible: Always