home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1999 April / DPPCPRO0499.ISO / April / Notes / 50b2wic.exe / DATA1.CAB / NotesProgramFilesJavaSupport / rt.jar / sun / misc / SelfTest.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-04-23  |  3.7 KB  |  225 lines

  1. package sun.misc;
  2.  
  3. public class SelfTest implements SelfTestInterface {
  4.    // $FF: renamed from: i1 int
  5.    public int field_0;
  6.    // $FF: renamed from: i2 int
  7.    public int field_1;
  8.    // $FF: renamed from: f1 float
  9.    public float field_2;
  10.    // $FF: renamed from: f2 float
  11.    public float field_3;
  12.    // $FF: renamed from: d1 double
  13.    public double field_4;
  14.    // $FF: renamed from: d2 double
  15.    public double field_5;
  16.    // $FF: renamed from: l1 long
  17.    public long field_6;
  18.    // $FF: renamed from: l2 long
  19.    public long field_7;
  20.    public static int si1;
  21.    public static int si2;
  22.    public static float sf1;
  23.    public static float sf2;
  24.    public static double sd1;
  25.    public static double sd2;
  26.    public static long sl1;
  27.    public static long sl2;
  28.    public SelfTestInterface interfaceObject;
  29.    public int[][][] multi;
  30.  
  31.    public SelfTest() {
  32.       this.set_i1(11);
  33.       this.set_i2(22);
  34.       this.set_f1(1.1F);
  35.       this.set_f2(2.2F);
  36.       this.set_d1((double)1.0F);
  37.       this.set_d2((double)2.0F);
  38.       this.set_l1(3L);
  39.       this.set_l2(4L);
  40.       set_si1(33);
  41.       set_si2(44);
  42.       set_sf1(3.3F);
  43.       set_sf2(4.4F);
  44.       set_sd1((double)3.0F);
  45.       set_sd2((double)4.0F);
  46.       set_sl1(5L);
  47.       set_sl2(6L);
  48.       this.test_areturn();
  49.       test_athrow1();
  50.       test_athrow2();
  51.       test_athrow3();
  52.       test_athrow4();
  53.       this.interfaceObject.test_an_interface(1234);
  54.       this.multi = new int[2][3][4];
  55.    }
  56.  
  57.    public SelfTest(int var1) {
  58.       this.field_0 = var1;
  59.       this.field_1 = 12345678;
  60.       this.field_4 = (double)var1;
  61.       this.field_5 = 1.2E234;
  62.    }
  63.  
  64.    public SelfTest(int var1, int var2) {
  65.       this.field_0 = var1;
  66.       this.field_1 = var2;
  67.    }
  68.  
  69.    public int set_i1(int var1) {
  70.       this.field_0 = var1;
  71.       return this.field_0 + 1;
  72.    }
  73.  
  74.    public int set_i2(int var1) {
  75.       this.field_1 = var1;
  76.       return this.field_1 + 1;
  77.    }
  78.  
  79.    public float set_f1(float var1) {
  80.       this.field_2 = var1;
  81.       return this.field_2 + 1.0E34F;
  82.    }
  83.  
  84.    public float set_f2(float var1) {
  85.       this.field_3 = var1;
  86.       return this.field_3 + 1.0E34F;
  87.    }
  88.  
  89.    public double set_d1(double var1) {
  90.       this.field_4 = var1;
  91.       return this.field_4 + 1.0E234;
  92.    }
  93.  
  94.    public double set_d2(double var1) {
  95.       this.field_5 = var1;
  96.       return this.field_5 + 1.0E234;
  97.    }
  98.  
  99.    public long set_l1(long var1) {
  100.       this.field_6 = var1;
  101.       return this.field_6 + 1L;
  102.    }
  103.  
  104.    public long set_l2(long var1) {
  105.       this.field_7 = var1;
  106.       return this.field_7 + 1L;
  107.    }
  108.  
  109.    public static void set_si1(int var0) {
  110.       si1 = var0;
  111.    }
  112.  
  113.    public static void set_si2(int var0) {
  114.       si2 = var0;
  115.    }
  116.  
  117.    public static void set_sf1(float var0) {
  118.       sf1 = var0;
  119.    }
  120.  
  121.    public static void set_sf2(float var0) {
  122.       sf2 = var0;
  123.    }
  124.  
  125.    public static void set_sd1(double var0) {
  126.       sd1 = var0;
  127.    }
  128.  
  129.    public static void set_sd2(double var0) {
  130.       sd2 = var0;
  131.    }
  132.  
  133.    public static void set_sl1(long var0) {
  134.       sl1 = var0;
  135.    }
  136.  
  137.    public static void set_sl2(long var0) {
  138.       sl2 = var0;
  139.    }
  140.  
  141.    public SelfTest test_areturn() {
  142.       return this;
  143.    }
  144.  
  145.    public void test_an_interface(int var1) {
  146.       this.field_0 = var1;
  147.    }
  148.  
  149.    public static void test_athrow1() throws NullPointerException {
  150.       try {
  151.          si1 = -1;
  152.          throw new NullPointerException();
  153.       } catch (Exception var0) {
  154.          si1 = 1;
  155.       }
  156.    }
  157.  
  158.    public static void test_athrow2() {
  159.       byte var0 = 1;
  160.  
  161.       try {
  162.          si1 = -1;
  163.          test_athrow1();
  164.       } catch (Exception var1) {
  165.          si1 = var0 + 1;
  166.       }
  167.    }
  168.  
  169.    public static void test_athrow3() {
  170.       byte var0 = 1;
  171.  
  172.       try {
  173.          si1 = -1;
  174.          si2 = -1;
  175.          test_athrow5();
  176.       } catch (NullPointerException var1) {
  177.          si1 = var0 + 1;
  178.       } catch (NoSuchMethodException var2) {
  179.          si2 = var0 + 1;
  180.       }
  181.  
  182.       ++si1;
  183.    }
  184.  
  185.    public static void test_athrow4() {
  186.       byte var0 = 2;
  187.  
  188.       try {
  189.          si1 = -1;
  190.          si2 = -1;
  191.          test_athrow7();
  192.       } catch (NullPointerException var1) {
  193.          si1 = var0 + 1;
  194.       } catch (NoSuchMethodException var2) {
  195.          si2 = var0 + 1;
  196.       }
  197.  
  198.       ++si2;
  199.    }
  200.  
  201.    public static void test_throw_nosuchmethod() throws NoSuchMethodException {
  202.       throw new NoSuchMethodException();
  203.    }
  204.  
  205.    public static void test_throw_nullpointer() throws NullPointerException {
  206.       throw new NullPointerException();
  207.    }
  208.  
  209.    public static void test_athrow5() throws NullPointerException, NoSuchMethodException {
  210.       test_athrow6();
  211.    }
  212.  
  213.    public static void test_athrow6() throws NullPointerException, NoSuchMethodException {
  214.       test_throw_nullpointer();
  215.    }
  216.  
  217.    public static void test_athrow7() throws NullPointerException, NoSuchMethodException {
  218.       test_athrow8();
  219.    }
  220.  
  221.    public static void test_athrow8() throws NullPointerException, NoSuchMethodException {
  222.       test_throw_nosuchmethod();
  223.    }
  224. }
  225.