home *** CD-ROM | disk | FTP | other *** search
- package sun.misc;
-
- public class SelfTest implements SelfTestInterface {
- // $FF: renamed from: i1 int
- public int field_0;
- // $FF: renamed from: i2 int
- public int field_1;
- // $FF: renamed from: f1 float
- public float field_2;
- // $FF: renamed from: f2 float
- public float field_3;
- // $FF: renamed from: d1 double
- public double field_4;
- // $FF: renamed from: d2 double
- public double field_5;
- // $FF: renamed from: l1 long
- public long field_6;
- // $FF: renamed from: l2 long
- public long field_7;
- public static int si1;
- public static int si2;
- public static float sf1;
- public static float sf2;
- public static double sd1;
- public static double sd2;
- public static long sl1;
- public static long sl2;
- public SelfTestInterface interfaceObject;
- public int[][][] multi;
-
- public SelfTest() {
- this.set_i1(11);
- this.set_i2(22);
- this.set_f1(1.1F);
- this.set_f2(2.2F);
- this.set_d1((double)1.0F);
- this.set_d2((double)2.0F);
- this.set_l1(3L);
- this.set_l2(4L);
- set_si1(33);
- set_si2(44);
- set_sf1(3.3F);
- set_sf2(4.4F);
- set_sd1((double)3.0F);
- set_sd2((double)4.0F);
- set_sl1(5L);
- set_sl2(6L);
- this.test_areturn();
- test_athrow1();
- test_athrow2();
- test_athrow3();
- test_athrow4();
- this.interfaceObject.test_an_interface(1234);
- this.multi = new int[2][3][4];
- }
-
- public SelfTest(int var1) {
- this.field_0 = var1;
- this.field_1 = 12345678;
- this.field_4 = (double)var1;
- this.field_5 = 1.2E234;
- }
-
- public SelfTest(int var1, int var2) {
- this.field_0 = var1;
- this.field_1 = var2;
- }
-
- public int set_i1(int var1) {
- this.field_0 = var1;
- return this.field_0 + 1;
- }
-
- public int set_i2(int var1) {
- this.field_1 = var1;
- return this.field_1 + 1;
- }
-
- public float set_f1(float var1) {
- this.field_2 = var1;
- return this.field_2 + 1.0E34F;
- }
-
- public float set_f2(float var1) {
- this.field_3 = var1;
- return this.field_3 + 1.0E34F;
- }
-
- public double set_d1(double var1) {
- this.field_4 = var1;
- return this.field_4 + 1.0E234;
- }
-
- public double set_d2(double var1) {
- this.field_5 = var1;
- return this.field_5 + 1.0E234;
- }
-
- public long set_l1(long var1) {
- this.field_6 = var1;
- return this.field_6 + 1L;
- }
-
- public long set_l2(long var1) {
- this.field_7 = var1;
- return this.field_7 + 1L;
- }
-
- public static void set_si1(int var0) {
- si1 = var0;
- }
-
- public static void set_si2(int var0) {
- si2 = var0;
- }
-
- public static void set_sf1(float var0) {
- sf1 = var0;
- }
-
- public static void set_sf2(float var0) {
- sf2 = var0;
- }
-
- public static void set_sd1(double var0) {
- sd1 = var0;
- }
-
- public static void set_sd2(double var0) {
- sd2 = var0;
- }
-
- public static void set_sl1(long var0) {
- sl1 = var0;
- }
-
- public static void set_sl2(long var0) {
- sl2 = var0;
- }
-
- public SelfTest test_areturn() {
- return this;
- }
-
- public void test_an_interface(int var1) {
- this.field_0 = var1;
- }
-
- public static void test_athrow1() throws NullPointerException {
- try {
- si1 = -1;
- throw new NullPointerException();
- } catch (Exception var0) {
- si1 = 1;
- }
- }
-
- public static void test_athrow2() {
- byte var0 = 1;
-
- try {
- si1 = -1;
- test_athrow1();
- } catch (Exception var1) {
- si1 = var0 + 1;
- }
- }
-
- public static void test_athrow3() {
- byte var0 = 1;
-
- try {
- si1 = -1;
- si2 = -1;
- test_athrow5();
- } catch (NullPointerException var1) {
- si1 = var0 + 1;
- } catch (NoSuchMethodException var2) {
- si2 = var0 + 1;
- }
-
- ++si1;
- }
-
- public static void test_athrow4() {
- byte var0 = 2;
-
- try {
- si1 = -1;
- si2 = -1;
- test_athrow7();
- } catch (NullPointerException var1) {
- si1 = var0 + 1;
- } catch (NoSuchMethodException var2) {
- si2 = var0 + 1;
- }
-
- ++si2;
- }
-
- public static void test_throw_nosuchmethod() throws NoSuchMethodException {
- throw new NoSuchMethodException();
- }
-
- public static void test_throw_nullpointer() throws NullPointerException {
- throw new NullPointerException();
- }
-
- public static void test_athrow5() throws NullPointerException, NoSuchMethodException {
- test_athrow6();
- }
-
- public static void test_athrow6() throws NullPointerException, NoSuchMethodException {
- test_throw_nullpointer();
- }
-
- public static void test_athrow7() throws NullPointerException, NoSuchMethodException {
- test_athrow8();
- }
-
- public static void test_athrow8() throws NullPointerException, NoSuchMethodException {
- test_throw_nosuchmethod();
- }
- }
-