equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2009, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2009, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
27 /* |
27 /* |
28 * @test |
28 * @test |
29 * @bug 6843077 |
29 * @bug 6843077 |
30 * @summary test that typecasts annotation are emitted if only the cast |
30 * @summary test that typecasts annotation are emitted if only the cast |
31 * expression is optimized away |
31 * expression is optimized away |
|
32 * @modules jdk.compiler/com.sun.tools.classfile |
32 */ |
33 */ |
33 |
34 |
34 public class TypeCasts { |
35 public class TypeCasts { |
35 public static void main(String[] args) throws Exception { |
36 public static void main(String[] args) throws Exception { |
36 new TypeCasts().run(); |
37 new TypeCasts().run(); |