Exemple #1
0
        private object Cinit_Int(JavaInstance instance, object[] parameters, RuntimeEnvironment environment)
        {
            string message        = "Array index out of range: " + parameters[0].ToString();
            var    stringInstance = environment.CreateStringInstance(message);

            RunNativeSuperConstructor(ClassDefaults.StringVoidMethodDescriptor, instance, new object[1] {
                stringInstance
            }, environment);
            return(null);
        }
Exemple #2
0
 private object ToString(JavaInstance instance, object[] parameters, RuntimeEnvironment environment)
 {
     return(environment.CreateStringInstance(string.Format("{0}@{1}", instance.JavaClass.Name.Replace('/', '.'), instance.GetHashCode().ToString("X"))));
 }