arg[i] = getBooleanObject(ref);
} else if (clsName.equals("java.lang.Byte")) {
arg[i] = getByteObject(ref);
- } else if (clsName.equals("java.lang.Char")) {
+ } else if (clsName.equals("java.lang.Character")) {
arg[i] = getCharObject(ref);
} else if (clsName.equals("java.lang.Short")) {
arg[i] = getShortObject(ref);
arg[i] = getStringObject(ref);
} else if (clsName.equals("java.lang.Byte")) {
arg[i] = getByteObject(ref);
- } else if (clsName.equals("java.lang.Char")) {
+ } else if (clsName.equals("java.lang.Character")) {
arg[i] = getCharObject(ref);
} else if (clsName.equals("java.lang.Short")) {
arg[i] = getShortObject(ref);
if (fi.isBooleanField() && valClsName.equals("java.lang.Boolean")) return true;
else if (fi.isByteField() && valClsName.equals("java.lang.Byte")) return true;
- else if (fi.isCharField() && valClsName.equals("java.lang.Char")) return true;
+ else if (fi.isCharField() && valClsName.equals("java.lang.Character")) return true;
else if (fi.isShortField() && valClsName.equals("java.lang.Short")) return true;
else if (fi.isIntField() && valClsName.equals("java.lang.Integer")) return true;
else if (fi.isLongField() && valClsName.equals("java.lang.Long")) return true;
--- /dev/null
+/*
+ * Copyright (C) 2014, United States Government, as represented by the
+ * Administrator of the National Aeronautics and Space Administration.
+ * All rights reserved.
+ *
+ * The Java Pathfinder core (jpf-core) platform is licensed under the
+ * Apache License, Version 2.0 (the "License"); you may not use this file except
+ * in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0.
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package gov.nasa.jpf.test.java.io;
+
+import gov.nasa.jpf.util.test.TestJPF;
+
+import java.io.ByteArrayOutputStream;
+import java.io.PrintStream;
+
+import org.junit.Test;
+
+/**
+ * regression test for object streams
+ */
+public class PrintStreamTest extends TestJPF {
+
+ @Test // currently fails with: java.lang.NoSuchMethodError: java.util.regex.Matcher.find(I)Z
+ public void testPrintCharFormat () {
+ if (verifyNoPropertyViolation()){
+ ByteArrayOutputStream baos = new ByteArrayOutputStream(1);
+ PrintStream baps = new PrintStream(baos, true);
+// baps.printf("%c", 'a'); // fails
+// assert (baos.toByteArray()[0] == 97);
+ }
+ }
+}