[Ikvm-developers] Problem with indexOf()
Brought to you by:
jfrijters
|
From: Michael K. <mi...@sa...> - 2008-06-18 21:47:09
|
The following program outputs -1 when run under Sun JDK:
public class IndexOf {
public static void main(String[] args) throws Exception {
System.err.println("Strasse".indexOf("ß"));
}
}
When run under ikvm (0.32.0.0), it outputs "4".
For avoidance of doubt, the argument of indexOf is Unicode 00DF, German
sharp s.
This was obtained running under ikvm directly, but the problem was first
observed with code compiled using ikvmc.
Michael Kay
http://www.saxonica.com/
|