summaryrefslogtreecommitdiffstats
path: root/tests/new/binaryWarnings/src/app/MainExecStartLines.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/new/binaryWarnings/src/app/MainExecStartLines.java')
-rw-r--r--tests/new/binaryWarnings/src/app/MainExecStartLines.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/new/binaryWarnings/src/app/MainExecStartLines.java b/tests/new/binaryWarnings/src/app/MainExecStartLines.java
new file mode 100644
index 000000000..826fd29b2
--- /dev/null
+++ b/tests/new/binaryWarnings/src/app/MainExecStartLines.java
@@ -0,0 +1,28 @@
+
+package app;
+
+public class MainExecStartLines {
+
+ public static void main(String[] args) // 6
+ { // 7
+
+
+
+
+ String t = "....".substring(0); // 12
+ }
+ void go(String s) {
+ try {
+ String t = "....".substring(0);
+ } catch (RuntimeException e) { // 17
+
+
+ String t = "....".substring(0); // 20
+ }
+ }
+}
+/*
+ * known limitation:
+ * For static shadow of [method|handler] execution join points
+ * in binary form, only can detect first line of code.
+ */