summaryrefslogtreecommitdiffstats
path: root/tests/features151/serialveruid/BigHorribleClass.java
blob: 7668307b23818cdcc0415869ba3bae4be6e801c7 (plain)
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
import java.io.Serializable;
import java.lang.reflect.Field;

public class BigHorribleClass implements Serializable,Comparable {
  public static void main(String[] args) {
	  try {
		  BigHorribleClass b = (BigHorribleClass)BigHorribleClass.class.newInstance();
	      Field f = BigHorribleClass.class.getDeclaredField("serialVersionUID");
	      long l = f.getLong(b);
	      System.err.println("SerialVersionUID is "+l);
	  } catch (Exception e) {
	      System.err.println("Problem: "+e.toString());
	  }
  }
  
  public int anInt;
  
  public static boolean aBoolean = false;
  
  public long foo = 376;
  
  public void m() {}
  public int compareTo(Object o) { return 0;}
  public String m2(boolean b,long l, String s) { return "";}
  
  public static transient short fo2 = 3;
  
}