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

Regtest java/net/URLClassLoader/ResExists fails

XMLWordPrintable

    • b49
    • generic
    • generic

      The regtest java/net/URLClassLoader/ResExists is failing.

      The error message is :

      xanadu:/satan/networking/temp <229> $ResExists.sh
      cp: ./resexists and ./resexists are identical
      added manifest
      adding: ResExists.class(in = 3045) (out= 1598)(deflated 47%)
      adding: images/(in = 0) (out= 0)(stored 0%)
      adding: images/app.gif(in = 2160) (out= 1830)(deflated 15%)
      Try Loader sun.misc.Launcher$AppClassLoader@c2391a
      OK: expected URL jar:file:/satan/networking/temp/resexists/resexists.jar!/images/app.gif
      OK: expected not to get URL resources/other.gif
      OK: expected not to get URL images/ext.gif
      FAIL: expected not to get URL jar:file:/net/yamlok/satan/work/jdk/1.5.0/39/j2sdk1.5.0/jre/lib/rt.jar!/javax/swing/plaf/metal/icons/Warn.gif

      Failed. Unexpected exception:java.lang.SecurityException: Something gotta hold on me
      Exception in thread "main" java.lang.SecurityException: Something gotta hold on me
              at ResExists.doit(ResExists.java:61)
              at ResExists.main(ResExists.java:38)
      xanadu:/satan/networking/temp <230> $



      ###@###.### 2004-04-14

      The problem seems to be with the grant statements in the users .java.policy file. The ResExists.sh file needs to be updated to take care of the correct permissions in the .java.policy file.

            ywangsunw Yingxian Wang (Inactive)
            kjethisunw Kanishk Jethi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: