/[classpath]/classpath/java/lang/Class.java
ViewVC logotype

Diff of /classpath/java/lang/Class.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.35 by jfrijters, Mon Apr 18 08:57:50 2005 UTC revision 1.36 by tromey, Mon Jun 6 05:07:12 2005 UTC
# Line 947  public final class Class implements Seri Line 947  public final class Class implements Seri
947    private String resourcePath(String resourceName)    private String resourcePath(String resourceName)
948    {    {
949      if (resourceName.length() > 0)      if (resourceName.length() > 0)
     {  
       if (resourceName.charAt(0) != '/')  
950        {        {
951          String pkg = getPackagePortion(getName());          if (resourceName.charAt(0) != '/')
952          if (pkg.length() > 0)            {
953            resourceName = pkg.replace('.','/') + '/' + resourceName;              String pkg = getPackagePortion(getName());
954                if (pkg.length() > 0)
955                  resourceName = pkg.replace('.','/') + '/' + resourceName;
956              }
957            else
958              {
959                resourceName = resourceName.substring(1);
960              }
961        }        }
       else  
       {  
         resourceName = resourceName.substring(1);  
       }  
     }  
962      return resourceName;      return resourceName;
963    }    }
964    

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26