/[classpath]/classpath/vm/reference/java/lang/Runtime.java
ViewVC logotype

Diff of /classpath/vm/reference/java/lang/Runtime.java

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

revision 1.7 by shalom, Sun Jun 25 07:22:07 2000 UTC revision 1.8 by cbj, Thu Jul 26 22:56:11 2001 UTC
# Line 43  public class Runtime { Line 43  public class Runtime {
43    
44          private Runtime() {          private Runtime() {
45                  String path = getLibraryPath();                  String path = getLibraryPath();
46                    if (path == null)
47                      {
48                        libpath = new String[0];
49                      }
50                    else
51                      {
52                  int numColons = 0;                  int numColons = 0;
53                  int pathLength = path.length();                  int pathLength = path.length();
54                  for(int i=0;i<pathLength;i++) {                  for(int i=0;i<pathLength;i++) {
# Line 54  public class Runtime { Line 60  public class Runtime {
60                  int current = 0;                  int current = 0;
61                  int libpathIndex = 0;                  int libpathIndex = 0;
62                  while(true) {                  while(true) {
63                          int next = path.indexOf(':',current);                          int next = path.indexOf(File.pathSeparatorChar,current);
64                          if(next == -1) {                          if(next == -1) {
65                                  libpath[libpathIndex] = path.substring(current);                                  libpath[libpathIndex] = path.substring(current);
66                                  break;                                  break;
# Line 63  public class Runtime { Line 69  public class Runtime {
69                          libpathIndex++;                          libpathIndex++;
70                          current = next+1;                          current = next+1;
71                  }                  }
72                    }
73          }          }
74    
75          /** Get the current Runtime object for this JVM.          /** Get the current Runtime object for this JVM.

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

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