Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4424332

ImageIcon with URL can't handle directries or iamge files named in Japanese

XMLWordPrintable

      Tested with Merlin-beta:
      ImageIcon with URL can not load images when the URL includes directories or files named in Japanese.

      ImageIcon(URL location)
      ImageIcon(URL location, String description)

      This problem does not occur with Ladybird.


      <Attached file: ImageIcon.tar>
      ImageIcon/
      ImageIcon/ImageIconTest.java
      ImageIcon/Test.class
      ImageIcon/Status.class
      ImageIcon/ImageIconTest.class
      ImageIcon/ImageIconTest_JP.java
      ImageIcon/ImageIconTest_JP.class

      <To reproduce>
      1. Extract ImageIcon.tar
      2. Lauch ImageIconTest_JP specifying the URL as an argument as below;
      java ImageIconTest_JP http://javasoft.japan.sun.com/i18n-test/ImageIconTest_data/image/

      *Four image gif files named in Japanese under the URL are expected to be displayed in ImageIconTest_JP, however, no images are displayed.
      *If the URL includes Japanese directoy name, the same problem occurs.

      If the URL or gif files do not includes Japanese characters,
      image icons can be displayed properly.
      <Steps to see this proper phenomenon>
      1. Launch ImageIconTest specifying the same URL above;
      java ImageIconTest http://javasoft.japan.sun.com/i18n-test/ImageIconTest_data/image/

      * Four image files named in ASCII charactesr as listed below are expected to be displayed in ImageIconTest
        banana.gif
        mono.gif
        ninjin.gif
        radich.gif
      *These files are displayed properly in two colums and four rows;
      one colum for ImageIcon(URL location), the other for ImageIcon(URL location, String description)


      --<NOTE>-----------------------------------------------------------------------
      Merlin has a problem in net/URLClassLoader.loadClass that it can't handle classes named in Japanese.-----> BugID 4400867

      Is this ImageIcon problem related to 4400867's problem?

      4400867's status is "integrated", though it is reproducible the latest build b55. It seems to be into b56.
      -------------------------------------------------------------------------------

            svioletsunw Scott Violet (Inactive)
            mmtokunasunw Mtokunaga Mtokunaga (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: