Quoting Robert Lougher <[EMAIL PROTECTED]>:

> Have you a simple testcase which can reproduce this?  If you have,
> I'll have a look at it.  BTW, I remember implementing stuff in the VM
> to get resources from the boot class loader, so resource loading is
> probably using a different path when you use -Xbootclasspath/p:/tmp...

Here's what I get from the following program.
The directory /tmp/resource contains the unpacked .properties
files from glibj.zip. The .properties files are found if
/tmp/resource precedes glibj.zip in the boot classpath,
and not if /tmp/resource follows glibj.zip or is absent.

glibj.zip is in /tmp because it won't fit in its usual location.

Thanks for taking a look at this.

Robert Dodier

public class TestResource
{
    public static void main (String [] args)
    {
        try
        {
            java.io.InputStream s = ClassLoader.getSystemResourceAsStream (args
[0]);
            if (s == null)
                System.err.println ("OOPS s == null for ``" + args [0] + "''");
            else
                System.err.println ("OK s != null for ``" + args [0] + "''");
        }
        catch (Exception e) { e.printStackTrace (); }
    }
}

# jamvm
-Xbootclasspath:/usr/share/jamvm/classes.zip:/tmp/resource:/tmp/glibj.zip -cp .
TestResource gnu/java/locale/LocaleInformation_pt_BR.properties

  => OK s != null for ``gnu/java/locale/LocaleInformation_pt_BR.properties''

# jamvm
-Xbootclasspath:/usr/share/jamvm/classes.zip:/tmp/glibj.zip:/tmp/resource -cp .
TestResource gnu/java/locale/LocaleInformation_pt_BR.properties

  => OOPS s == null for ``gnu/java/locale/LocaleInformation_pt_BR.properties''

# jamvm -Xbootclasspath:/usr/share/jamvm/classes.zip:/tmp/glibj.zip -cp .
TestResource gnu/java/locale/LocaleInformation_pt_BR.properties

  => OOPS s == null for ``gnu/java/locale/LocaleInformation_pt_BR.properties''


Reply via email to