1 /* 2 * package g4.v.ref is a package to define method which define and contain 3 * references (ref) to local variables (v) based on parameterized types 4 */ 5 package g4.v.ref; 6 7 import g1.t.s.def.Generic; 8 9 /* 10 * This type is used to test declaration and references to local variables 11 */ 12 public class R1 { simple_name( Generic<Object> gen_obj, Generic<Exception> gen_exc, Generic<? extends Throwable> gen_thr, Generic<? super RuntimeException> gen_run)13 void simple_name( 14 Generic<Object> gen_obj, 15 Generic<Exception> gen_exc, 16 Generic<? extends Throwable> gen_thr, 17 Generic<? super RuntimeException> gen_run) 18 { 19 gen_obj.toString(); 20 gen_exc.toString(); 21 gen_thr.toString(); 22 gen_run.toString(); 23 } qualified_name()24 void qualified_name() { 25 g1.t.s.def.Generic<Object> gen_obj = new Generic<Object>(); 26 g1.t.s.def.Generic<Exception> gen_exc = new Generic<Exception>(); 27 g1.t.s.def.Generic<? extends Throwable> gen_thr = new Generic<? extends Throwable>(); 28 g1.t.s.def.Generic<? super RuntimeException> gen_run = new Generic<? super RuntimeException>(); 29 30 gen_obj.toString(); 31 gen_exc.toString(); 32 gen_thr.toString(); 33 gen_run.toString(); 34 } 35 } 36