[Bug 840] New: ClassLoader.getResourceAsStream returning null where sunjdk returns the resource

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Thu Dec 22 13:06:58 PST 2011


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=840

             Bug #: 840
           Summary: ClassLoader.getResourceAsStream returning null where
                    sunjdk returns the resource
    Classification: Unclassified
           Product: IcedTea-Web
           Version: unspecified
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Plugin
        AssignedTo: dbhole at redhat.com
        ReportedBy: bluelive at gmail.com
                CC: unassigned at icedtea.classpath.org


Loader.class.getClassLoader().getResourceAsStream(name)
returns null where using the sunjdk it returns the resource.

The class Loader is in the same jar as the resource, the resource is in a
directory called res/

The resource is an image.

The call the getResourceAsStream is done while intializing static fields on
classes from the jar.

This is using a vanilla ubuntu-11.10-desktop-amd64 with no further changes.

-- 
Configure bugmail: http://icedtea.classpath.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the distro-pkg-dev mailing list