CrashTest.java
1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
package com.crashlytics.android.core;
import android.os.AsyncTask;
import io.fabric.sdk.android.Fabric;
import io.fabric.sdk.android.Logger;
public class CrashTest
{
private void privateMethodThatThrowsException(String paramString)
{
throw new RuntimeException(paramString);
}
public void crashAsyncTask(final long paramLong)
{
new AsyncTask()
{
protected Void doInBackground(Void... paramAnonymousVarArgs)
{
try
{
Thread.sleep(paramLong);
CrashTest.this.throwRuntimeException("Background thread crash");
return null;
}
catch (InterruptedException paramAnonymousVarArgs)
{
for (;;) {}
}
}
}.execute(new Void[] { null });
}
public void indexOutOfBounds()
{
int i = new int[2][10];
Fabric.getLogger().d("CrashlyticsCore", "Out of bounds value: " + i);
}
public int stackOverflow()
{
return stackOverflow() + (int)Math.random();
}
public void throwFiveChainedExceptions()
{
try
{
privateMethodThatThrowsException("1");
return;
}
catch (Exception localException1)
{
try
{
throw new RuntimeException("2", localException1);
}
catch (Exception localException2)
{
try
{
throw new RuntimeException("3", localException2);
}
catch (Exception localException3)
{
try
{
throw new RuntimeException("4", localException3);
}
catch (Exception localException4)
{
throw new RuntimeException("5", localException4);
}
}
}
}
}
public void throwRuntimeException(String paramString)
{
throw new RuntimeException(paramString);
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/crashlytics/android/core/CrashTest.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/