Skip to content

Commit 1d99413

Browse files
Adding test for exception throwing in String.format
This is marked as knownbug as it does not work at the moment.
1 parent 5138f7d commit 1d99413

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed
Binary file not shown.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
KNOWNBUG
2+
test.class
3+
--refine-strings --string-max-length 20
4+
^EXIT=10$
5+
^SIGNAL=0$
6+
^\[.*assertion.1\].* line 8.* SUCCESS$
7+
^\[.*assertion.2\].* line 13.* FAILURE$
8+
--
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
public class test
2+
{
3+
public static String main(String str)
4+
{
5+
try
6+
{
7+
String s = String.format("%s %s", "a");
8+
assert(false);
9+
return s;
10+
}
11+
catch(java.util.IllegalFormatException e)
12+
{
13+
assert(false);
14+
return str;
15+
}
16+
}
17+
}

0 commit comments

Comments
 (0)