Bug 70870 - [navigation][hovering] Javadoc view cannot find URL with anchor
Summary: [navigation][hovering] Javadoc view cannot find URL with anchor
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 3.4 M4   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2004-07-26 18:38 EDT by Gary Gregory CLA
Modified: 2007-11-22 04:33 EST (History)
2 users (show)

See Also:


Attachments
JavaDoc2HTMLTextReader patch (2.95 KB, patch)
2007-11-13 20:49 EST, Benjamin Muskalla CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Gregory CLA 2004-07-26 18:38:01 EDT
I have the javadoc comment:

    /**
     * <p>
     * Seven-bit ASCII, also known as ISO646-US, also known as the Basic Latin
block of the Unicode character set.
     * </p>
     * <p>
     * Every implementation of the Java platform is required to support this
character encoding.
     * </p>
     * 
     * @see <a
href="http://java.sun.com/j2se/1.3/docs/api/java/lang/package-summary.html#charenc">JRE
character
     *          encoding names </a>
     */

When I click on "JRE character encoding names" in the Javadoc view, I get a page
not found.

When I paste the URL:

http://java.sun.com/j2se/1.3/docs/api/java/lang/package-summary.html#charenc

in Mozilla, all is well.
Comment 1 Frederic Fusier CLA 2004-07-27 04:56:48 EDT
Could you attach the entire class (or only your example) to the bug.
Bugzilla wrap lines and I need to know where the line really breaks in your code.
Thx
Comment 2 Frederic Fusier CLA 2004-07-27 06:01:31 EDT
Forget my previous comment, I thought it was a compiler issue.
Move to JDT/UI who owns Javadoc view...
Comment 3 Dani Megert CLA 2004-08-24 10:13:55 EDT
We replace the Class#member format with Class.member i.e. the '#' with a '.' and
this happpens for the link as well i.e. the link gets scrambled to
  http://java.sun.com/j2se/1.3/docs/api/java/lang/package-summary.html.charenc
which of course won't work.
Comment 4 Benjamin Muskalla CLA 2007-11-13 20:49:28 EST
Created attachment 82827 [details]
JavaDoc2HTMLTextReader patch

Dani, here is a little patch to solve the problem. I'm not sure if this is the best way doing this but I think you could tell me more ;)
Comment 5 Dani Megert CLA 2007-11-21 09:34:24 EST
Perfect - and even with new tests. Thanks.

I some minor modifications:
- added your credentials to the header
- removed superfluous braces and spaces
- use 'result' instead of 'qualification' variable to store intermediate results