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 71978 - I18N: Javadoc Index Search does not work for JDK1.5 JA javadoc
Summary: I18N: Javadoc Index Search does not work for JDK1.5 JA javadoc
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Javadoc (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Jan Pokorsky
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2006-01-29 09:41 UTC by Masaki Katakai
Modified: 2007-10-10 17:55 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NoSuchElementException (1.05 KB, text/plain)
2006-01-31 11:06 UTC, Jan Pokorsky
Details
example for patch (3.09 KB, text/plain)
2006-04-06 03:17 UTC, Masaki Katakai
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Masaki Katakai 2006-01-29 09:41:08 UTC
On RC2, it seems that "jdk-1_5_0-doc-ja.zip" can not be searched on "Javadoc
Index Search".

1. Download jdk docs from
   http://java.sun.com/j2se/1.5.0/download.jsp
2. Add jdk-1_5_0-doc-ja.zip as javadoc on Java Platform Manager
3. Tool > Javadoc Index Search
4. Try to search

Nothing can be found.

5. Download english javadoc jdk-1_5_0-doc.zip
6. Add this on Java Platform Manager
7. Try again

Words can be found only from English javadoc.

Japanese javadoc itself can be invoked at code editing,
Japanese characters are displayed properly, yet, it works fine.
But Javadoc index search does not work.

Any tip and settings are needed to work this ja javadoc?
Comment 1 Jan Pokorsky 2006-01-31 11:04:58 UTC
Yes, I can reproduce the same. I am getting the following exception.
Comment 2 Jan Pokorsky 2006-01-31 11:06:18 UTC
Created attachment 28671 [details]
NoSuchElementException
Comment 3 thilob 2006-02-04 21:58:34 UTC
I also got no results when using the Index Search.
After de-installing the Mobility Pack, everything works fine.
Comment 4 Jan Pokorsky 2006-02-06 10:22:17 UTC
This issue does not relate to the Mobility Pack issue (issue #71391).
Comment 5 Masaki Katakai 2006-04-06 03:12:21 UTC
There are three issues,

- st.nextToken() throws Exception, we should catch this. If not, search will stop.
- insertDocIndexItem() is being called twice in Japanese case
- JDK1.5 Japanese Javadoc itself has tag issue

I'll post simple patch for the first two issues. It's just an example patch but
please review it.

For JDK1.5 Javadoc issue, I'll ask JDK localization folks.
Comment 6 Masaki Katakai 2006-04-06 03:17:16 UTC
Created attachment 29651 [details]
example for patch
Comment 7 Jan Pokorsky 2006-06-07 14:48:06 UTC
fixed in

/cvs/javadoc/src/org/netbeans/modules/javadoc/search/SearchThreadJdk12_japan.java
new revision: 1.14; previous revision: 1.13

please verify
Comment 8 Max Sauer 2006-06-12 11:12:53 UTC
Verified in NB6.0(euc-jp). The patch is ok from qa side..

------
Product Version         = NetBeans IDE Dev (Build 200606111800)
Operating System        = Linux version 2.6.11.11 running on i386
Java; VM; Vendor; Home  = 1.5.0_06; Java HotSpot(TM) Client VM 1.5.0_06-b05; Sun
Microsystems Inc.; /usr/java/jdk1.5.0_06/jre
System Locale; Encoding = ja_JP (nb); EUC-JP-LINUX
Comment 9 Jan Pokorsky 2006-06-13 13:55:16 UTC
merged to release55

/cvs/javadoc/src/org/netbeans/modules/javadoc/search/SearchThreadJdk12_japan.java
new revision: 1.13.28.1; previous revision: 1.13
Comment 10 Ken Frank 2007-05-26 19:08:04 UTC
tools-javadoc index search is not present nor is view->documentation
indices in nb6.

How does one do each ?  I need to verify this issue.
Comment 11 Jan Pokorsky 2007-06-25 14:27:18 UTC
view->documentation indices menu item was replaced with help->javadoc references

tools-javadoc index search seems to mysteriously disappeared after issue #100924 (NB6.0M9) but you can still invoke it
with Ctrl+Shift+F1
Comment 12 Jan Pokorsky 2007-06-26 12:24:41 UTC
The right shortcut is Shift+F1
Comment 13 Ken Frank 2007-10-10 17:55:21 UTC
added jdk6 ja javadoc to platform

did a search on java.applet and it showed results, which, when clicked, go to ja javadoc
in browser.

also, help->javadoc references has the ja javadoc on a submenu.

ken.frank@sun.com