[kaffe] CVS kaffe (dalibor): Resynced with GNU Classpath: Fixed small glitch with FilePermission
Kaffe CVS
cvs-commits at kaffe.org
Tue Mar 16 10:00:05 PST 2004
PatchSet 4526
Date: 2004/03/16 17:37:52
Author: dalibor
Branch: HEAD
Tag: (none)
Log:
Resynced with GNU Classpath: Fixed small glitch with FilePermission
2004-03-16 Dalibor Topic <robilad at kaffe.org>
Resynced with GNU Classpath.
2004-03-12 Mark Wielaard <mark at klomp.org>
Reported by Stephen Crawley
* java/io/FilePermission.java (implies): Use String.length() -1 to
access last char of String.
Members:
ChangeLog:1.2104->1.2105
libraries/javalib/java/io/FilePermission.java:1.6->1.7
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2104 kaffe/ChangeLog:1.2105
--- kaffe/ChangeLog:1.2104 Tue Mar 16 17:06:38 2004
+++ kaffe/ChangeLog Tue Mar 16 17:37:52 2004
@@ -1,4 +1,14 @@
-2004-03-15 Dalibor Topic <robilad at kaffe.org>
+2004-03-16 Dalibor Topic <robilad at kaffe.org>
+
+ Resynced with GNU Classpath.
+
+ 2004-03-12 Mark Wielaard <mark at klomp.org>
+
+ Reported by Stephen Crawley
+ * java/io/FilePermission.java (implies): Use String.length() -1 to
+ access last char of String.
+
+2004-03-16 Dalibor Topic <robilad at kaffe.org>
* libraries/javalib/gnu/classpath/Configuration.java:
Removed CLASSPATH_HOME. Set CLASSPATH_VERSION to a saner value.
Index: kaffe/libraries/javalib/java/io/FilePermission.java
diff -u kaffe/libraries/javalib/java/io/FilePermission.java:1.6 kaffe/libraries/javalib/java/io/FilePermission.java:1.7
--- kaffe/libraries/javalib/java/io/FilePermission.java:1.6 Sat Dec 27 21:15:58 2003
+++ kaffe/libraries/javalib/java/io/FilePermission.java Tue Mar 16 17:37:53 2004
@@ -271,9 +271,9 @@
break;
*/
default:
- if(f2.charAt(f2.length()) == File.separatorChar)
+ if(f2.charAt(f2.length() - 1) == File.separatorChar)
{
- if(!f1.equals(f2.substring(0,f2.length()-1)))
+ if(!f1.equals(f2.substring(0,f2.length() - 1)))
return false;
}
else
More information about the kaffe
mailing list