| Summary: | [hovering] JavaDoc-Navigation broken if there are spaces in the URL | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Thomas Schindl <tom.schindl> | ||||
| Component: | UI | Assignee: | Markus Keller <markus.kell.r> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | daniel_megert, mlippert | ||||
| Version: | 3.8 | Flags: | daniel_megert:
review+
|
||||
| Target Milestone: | 3.8 RC1 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Bug Depends on: | 368629 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
|
Description
Thomas Schindl
*** Bug 378075 has been marked as a duplicate of this bug. *** We might have to add a workaround for the IE browser widget (bug 368629). When I look at the code in JavaElementLinks, there is a try-catch around that URI creation that catches URISyntaxException. Why is this exception being thrown here? (just wondering) Created attachment 215627 [details] Workaround for SWT Bug 368629 Workaround for SWT Bug 368629. Also removes the obsolete workaround for bug 237903. This patch is safe also if bug 368629 gets fixed (URISyntaxException won't be thrown any more in that case). To reproduce the problem, you need a library with no source attachment and a local Javadoc attachment with a path that contains spaces. The bug is that links in the Javadoc description (not in the header) don't work. java.util.regex.Pattern is an example with such links. I would release this unless we have clear signs that the blocking bug gets fixed. +1 for fixing this problem in 3.8. I agree without a clear sign from SWT you should release this fix. Thanks for this Markus! Unfortunately, we have more problems with URL-handling, see bug 379525. E.g. opening Javadoc with spaces in the path in an external browser doesn't work. Comment on attachment 215627 [details] Workaround for SWT Bug 368629 Fix looks good and verified that it works. I've committed the workaround, so that at least JDT/UI is on the safe side (this is our only reference to LocationEvent#location). http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=c3eb737d8ff6d4033ec60f0aaee72ead5761c1d1 Verified in 3.8-I20120515-2300 and 4.2-I20120515-2200. > Verified in 3.8-I20120515-2300 and 4.2-I20120515-2200.
Since SWT only did a build input for 4.2, this actually tested both the SWT and the JDT UI fix.
|