test/tools/javac/6547131/T.java

Tue, 03 Jun 2008 13:26:47 -0700

author
jjg
date
Tue, 03 Jun 2008 13:26:47 -0700
changeset 46
7708bd6d800d
parent 0
959103a6100f
permissions
-rw-r--r--

4075303: Use javap to enquire aboput a specific inner class
4348375: Javap is not internationalized
4459541: "javap -l" shows line numbers as signed short; they should be unsigned
4501660: change diagnostic of -help as 'print this help message and exit'
4776241: unused source file in javap...
4870651: javap should recognize generics, varargs, enum
4876942: javap invoked without args does not print help screen
4880663: javap could output whitespace between class name and opening brace
4975569: javap doesn't print new flag bits
6271787: javap dumps LocalVariableTypeTable attribute in hex, needs to print a table
6305779: javap: support annotations
6439940: Clean up javap implementation
6469569: wrong check of searchpath in JavapEnvironment
6474890: javap does not open .zip files in -classpath
6587786: Javap throws error : "ERROR:Could not find <classname>" for JRE classes
6622215: javap ignores certain relevant access flags
6622216: javap names some attributes incorrectly
6622232: javap gets whitespace confused
6622260: javap prints negative bytes incorrectly in hex
Reviewed-by: ksrini

aoqi@0 1 /**
aoqi@0 2 * @test
aoqi@0 3 * @bug 6547131
aoqi@0 4 * @summary java.lang.ClassFormatError when using old collection API
aoqi@0 5 * @compile T.java
aoqi@0 6 * @run main T
aoqi@0 7 */
aoqi@0 8
aoqi@0 9 import p.*;
aoqi@0 10
aoqi@0 11 class SubI implements Outer.I {
aoqi@0 12 SubI() { }
aoqi@0 13 Outer.I getI() { return this; }
aoqi@0 14 }
aoqi@0 15
aoqi@0 16 public class T {
aoqi@0 17 public static void main(String argv[]){
aoqi@0 18 SubI sub = new SubI();
aoqi@0 19 Outer.I inter = (Outer.I)sub.getI();
aoqi@0 20 }
aoqi@0 21 }

mercurial