< prev index next >

test/jdk/javadoc/doclet/testTypeAnnotations/typeannos/Throws.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 38,48 **** public final void twoExceptions(String a) throws @ThrA RuntimeException, @ThrA Exception {} } class ThrWithValue { void oneException() throws @ThrB("m") Exception {} ! void twoExceptions() throws @ThrB(value="m") RuntimeException, @ThrA Exception {} } @Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER}) @Documented @interface ThrA {} --- 38,48 ---- public final void twoExceptions(String a) throws @ThrA RuntimeException, @ThrA Exception {} } class ThrWithValue { void oneException() throws @ThrB("m") Exception {} ! void twoExceptions() throws @ThrB("m") RuntimeException, @ThrA Exception {} } @Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER}) @Documented @interface ThrA {}
< prev index next >