Tue, 10 Apr 2012 08:15:25 -0700
7074397: Build infrastructure changes (makefile re-write)
Summary: New makefiles transition, old and new living side by side for now.
Reviewed-by: ohair, jjg, dholmes, ohrstrom, erikj, ihse, tgranat, ykantser
Contributed-by: ohrstrom <fredrik.ohrstrom@oracle.com>, erikj <erik.joelsson@oracle.com>, ihse <magnus.ihse.bursie@oracle.com>, tgranat <torbjorn.granat@oracle.com>, ykantser <yekaterina.kantserova@oracle.com>
aoqi@0 | 1 | /** |
aoqi@0 | 2 | * @test |
aoqi@0 | 3 | * @bug 6520152 |
aoqi@0 | 4 | * @summary ACC_FINAL flag for anonymous classes shouldn't be set |
aoqi@0 | 5 | * @compile T.java |
aoqi@0 | 6 | * @run main/othervm T6520152 |
aoqi@0 | 7 | */ |
aoqi@0 | 8 | |
aoqi@0 | 9 | import java.lang.reflect.Method; |
aoqi@0 | 10 | import static java.lang.reflect.Modifier.*; |
aoqi@0 | 11 | |
aoqi@0 | 12 | public class T6520152 { |
aoqi@0 | 13 | public static void main(String [] args) throws Exception { |
aoqi@0 | 14 | Class clazz = Class.forName("T$1"); |
aoqi@0 | 15 | if ((clazz.getModifiers() & FINAL) != 0) { |
aoqi@0 | 16 | throw new RuntimeException("Failed: " + clazz.getName() + " shouldn't be marked final."); |
aoqi@0 | 17 | } |
aoqi@0 | 18 | } |
aoqi@0 | 19 | } |