equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2001, 2013, 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. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
24 */ |
24 */ |
25 |
25 |
26 package sun.reflect; |
26 package sun.reflect; |
27 |
27 |
28 import java.lang.reflect.Field; |
28 import java.lang.reflect.Field; |
|
29 import java.lang.reflect.Executable; |
29 import java.lang.reflect.Method; |
30 import java.lang.reflect.Method; |
30 import java.lang.reflect.Constructor; |
31 import java.lang.reflect.Constructor; |
31 import java.lang.reflect.Modifier; |
32 import java.lang.reflect.Modifier; |
32 import java.security.AccessController; |
33 import java.security.AccessController; |
33 import java.security.Permission; |
34 import java.security.Permission; |
312 in Constructor.java for details. */ |
313 in Constructor.java for details. */ |
313 public <T> Constructor<T> copyConstructor(Constructor<T> arg) { |
314 public <T> Constructor<T> copyConstructor(Constructor<T> arg) { |
314 return langReflectAccess().copyConstructor(arg); |
315 return langReflectAccess().copyConstructor(arg); |
315 } |
316 } |
316 |
317 |
|
318 /** Gets the byte[] that encodes TypeAnnotations on an executable. |
|
319 */ |
|
320 public byte[] getExecutableTypeAnnotationBytes(Executable ex) { |
|
321 return langReflectAccess().getExecutableTypeAnnotationBytes(ex); |
|
322 } |
|
323 |
317 //-------------------------------------------------------------------------- |
324 //-------------------------------------------------------------------------- |
318 // |
325 // |
319 // Routines used by serialization |
326 // Routines used by serialization |
320 // |
327 // |
321 // |
328 // |