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

Regression: getClass().getResource(resource_name) is returning null inside an applet

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1 P1
    • 6
    • 6
    • deploy
    • b42
    • generic
    • generic
    • Verified

      Tested Build : JRE PIT build(build 1.6.0-b99) and build 1.6.0-ea-b38
      Tested Platform : All
      Build Location : /net/sqesvr-nfs.sfbay/global/nfs/deployment5/pit_builds
      /net/koori/onestop/jdk/1.6.0/latest/bundles/

      Problem description :
      Call to API getClass().getResource(resource_name) is returning NULL inside an applet from mustang b-38 onwards. It's working fine inside an application. Inside an applet it's behavior is correct till mustang b-37 and also it's working fine with tiger

      Steps to reproduce:
      1) Install JRE from above mentioned locations and on unix register browser with the newly installed JRE
      2) Load the following applet
      http://sqeweb.sfbay.sun.com/deployment2/jitu/plug-bug/getResource/AppletGetResource.html
      3) If java.lang.NullPointerException is getting thrown on the java console and "null" is getting painted inside an applet against "Resource URL" then bug is reproduced

      The applet will work fine with all the mustang releases till b37 and tiger



      ###@###.### 2005-06-02 21:38:38 GMT

            ngthomas Thomas Ng (Inactive)
            jijising Jitender Singh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: