author | chegar |
Sun, 17 Aug 2014 15:54:13 +0100 | |
changeset 25859 | 3317bb8137f4 |
parent 21284 | jdk/src/share/classes/sun/reflect/Reflection.java@e6dfe841a88f |
child 27783 | 6317ec69db47 |
permissions | -rw-r--r-- |
2 | 1 |
/* |
20872
8e486b70dff8
8022718: Runtime accessibility checking: protected class, if extended, should be accessible from another package
drchase
parents:
16906
diff
changeset
|
2 |
* Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved. |
2 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
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 |
|
5506 | 7 |
* published by the Free Software Foundation. Oracle designates this |
2 | 8 |
* particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
* by Oracle in the LICENSE file that accompanied this code. |
2 | 10 |
* |
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
5506 | 21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
2 | 24 |
*/ |
25 |
||
26 |
package sun.reflect; |
|
27 |
||
28 |
import java.lang.reflect.*; |
|
29 |
import java.util.HashMap; |
|
30 |
import java.util.Map; |
|
31 |
||
32 |
/** Common utility routines used by both java.lang and |
|
33 |
java.lang.reflect */ |
|
34 |
||
35 |
public class Reflection { |
|
36 |
||
37 |
/** Used to filter out fields and methods from certain classes from public |
|
38 |
view, where they are sensitive or they may contain VM-internal objects. |
|
39 |
These Maps are updated very rarely. Rather than synchronize on |
|
40 |
each access, we use copy-on-write */ |
|
10342
ca0984bc9d32
7077389: Reflection classes do not build with javac -Xlint:all -Werror
jjg
parents:
5506
diff
changeset
|
41 |
private static volatile Map<Class<?>,String[]> fieldFilterMap; |
ca0984bc9d32
7077389: Reflection classes do not build with javac -Xlint:all -Werror
jjg
parents:
5506
diff
changeset
|
42 |
private static volatile Map<Class<?>,String[]> methodFilterMap; |
2 | 43 |
|
44 |
static { |
|
10342
ca0984bc9d32
7077389: Reflection classes do not build with javac -Xlint:all -Werror
jjg
parents:
5506
diff
changeset
|
45 |
Map<Class<?>,String[]> map = new HashMap<Class<?>,String[]>(); |
2 | 46 |
map.put(Reflection.class, |
47 |
new String[] {"fieldFilterMap", "methodFilterMap"}); |
|
48 |
map.put(System.class, new String[] {"security"}); |
|
49 |
fieldFilterMap = map; |
|
50 |
||
10342
ca0984bc9d32
7077389: Reflection classes do not build with javac -Xlint:all -Werror
jjg
parents:
5506
diff
changeset
|
51 |
methodFilterMap = new HashMap<>(); |
2 | 52 |
} |
53 |
||
16906
44dfee24cb71
8010117: Annotate jdk caller sensitive methods with @sun.reflect.CallerSensitive
mchung
parents:
14342
diff
changeset
|
54 |
/** Returns the class of the caller of the method calling this method, |
44dfee24cb71
8010117: Annotate jdk caller sensitive methods with @sun.reflect.CallerSensitive
mchung
parents:
14342
diff
changeset
|
55 |
ignoring frames associated with java.lang.reflect.Method.invoke() |
44dfee24cb71
8010117: Annotate jdk caller sensitive methods with @sun.reflect.CallerSensitive
mchung
parents:
14342
diff
changeset
|
56 |
and its implementation. */ |
44dfee24cb71
8010117: Annotate jdk caller sensitive methods with @sun.reflect.CallerSensitive
mchung
parents:
14342
diff
changeset
|
57 |
@CallerSensitive |
44dfee24cb71
8010117: Annotate jdk caller sensitive methods with @sun.reflect.CallerSensitive
mchung
parents:
14342
diff
changeset
|
58 |
public static native Class<?> getCallerClass(); |
2 | 59 |
|
21284
e6dfe841a88f
8025799: Restore sun.reflect.Reflection.getCallerClass(int) until a replacement API is provided
mchung
parents:
20872
diff
changeset
|
60 |
/** |
e6dfe841a88f
8025799: Restore sun.reflect.Reflection.getCallerClass(int) until a replacement API is provided
mchung
parents:
20872
diff
changeset
|
61 |
* @deprecated This method will be removed in JDK 9. |
e6dfe841a88f
8025799: Restore sun.reflect.Reflection.getCallerClass(int) until a replacement API is provided
mchung
parents:
20872
diff
changeset
|
62 |
* This method is a private JDK API and retained temporarily for |
e6dfe841a88f
8025799: Restore sun.reflect.Reflection.getCallerClass(int) until a replacement API is provided
mchung
parents:
20872
diff
changeset
|
63 |
* existing code to run until a replacement API is defined. |
e6dfe841a88f
8025799: Restore sun.reflect.Reflection.getCallerClass(int) until a replacement API is provided
mchung
parents:
20872
diff
changeset
|
64 |
*/ |
e6dfe841a88f
8025799: Restore sun.reflect.Reflection.getCallerClass(int) until a replacement API is provided
mchung
parents:
20872
diff
changeset
|
65 |
@Deprecated |
e6dfe841a88f
8025799: Restore sun.reflect.Reflection.getCallerClass(int) until a replacement API is provided
mchung
parents:
20872
diff
changeset
|
66 |
public static native Class<?> getCallerClass(int depth); |
e6dfe841a88f
8025799: Restore sun.reflect.Reflection.getCallerClass(int) until a replacement API is provided
mchung
parents:
20872
diff
changeset
|
67 |
|
2 | 68 |
/** Retrieves the access flags written to the class file. For |
69 |
inner classes these flags may differ from those returned by |
|
70 |
Class.getModifiers(), which searches the InnerClasses |
|
71 |
attribute to find the source-level access flags. This is used |
|
72 |
instead of Class.getModifiers() for run-time access checks due |
|
73 |
to compatibility reasons; see 4471811. Only the values of the |
|
74 |
low 13 bits (i.e., a mask of 0x1FFF) are guaranteed to be |
|
75 |
valid. */ |
|
20872
8e486b70dff8
8022718: Runtime accessibility checking: protected class, if extended, should be accessible from another package
drchase
parents:
16906
diff
changeset
|
76 |
public static native int getClassAccessFlags(Class<?> c); |
2 | 77 |
|
78 |
/** A quick "fast-path" check to try to avoid getCallerClass() |
|
79 |
calls. */ |
|
10342
ca0984bc9d32
7077389: Reflection classes do not build with javac -Xlint:all -Werror
jjg
parents:
5506
diff
changeset
|
80 |
public static boolean quickCheckMemberAccess(Class<?> memberClass, |
2 | 81 |
int modifiers) |
82 |
{ |
|
83 |
return Modifier.isPublic(getClassAccessFlags(memberClass) & modifiers); |
|
84 |
} |
|
85 |
||
10342
ca0984bc9d32
7077389: Reflection classes do not build with javac -Xlint:all -Werror
jjg
parents:
5506
diff
changeset
|
86 |
public static void ensureMemberAccess(Class<?> currentClass, |
ca0984bc9d32
7077389: Reflection classes do not build with javac -Xlint:all -Werror
jjg
parents:
5506
diff
changeset
|
87 |
Class<?> memberClass, |
2 | 88 |
Object target, |
89 |
int modifiers) |
|
90 |
throws IllegalAccessException |
|
91 |
{ |
|
92 |
if (currentClass == null || memberClass == null) { |
|
93 |
throw new InternalError(); |
|
94 |
} |
|
95 |
||
96 |
if (!verifyMemberAccess(currentClass, memberClass, target, modifiers)) { |
|
97 |
throw new IllegalAccessException("Class " + currentClass.getName() + |
|
98 |
" can not access a member of class " + |
|
99 |
memberClass.getName() + |
|
100 |
" with modifiers \"" + |
|
101 |
Modifier.toString(modifiers) + |
|
102 |
"\""); |
|
103 |
} |
|
104 |
} |
|
105 |
||
10342
ca0984bc9d32
7077389: Reflection classes do not build with javac -Xlint:all -Werror
jjg
parents:
5506
diff
changeset
|
106 |
public static boolean verifyMemberAccess(Class<?> currentClass, |
2 | 107 |
// Declaring class of field |
108 |
// or method |
|
10342
ca0984bc9d32
7077389: Reflection classes do not build with javac -Xlint:all -Werror
jjg
parents:
5506
diff
changeset
|
109 |
Class<?> memberClass, |
2 | 110 |
// May be NULL in case of statics |
10342
ca0984bc9d32
7077389: Reflection classes do not build with javac -Xlint:all -Werror
jjg
parents:
5506
diff
changeset
|
111 |
Object target, |
ca0984bc9d32
7077389: Reflection classes do not build with javac -Xlint:all -Werror
jjg
parents:
5506
diff
changeset
|
112 |
int modifiers) |
2 | 113 |
{ |
114 |
// Verify that currentClass can access a field, method, or |
|
115 |
// constructor of memberClass, where that member's access bits are |
|
116 |
// "modifiers". |
|
117 |
||
118 |
boolean gotIsSameClassPackage = false; |
|
119 |
boolean isSameClassPackage = false; |
|
120 |
||
121 |
if (currentClass == memberClass) { |
|
122 |
// Always succeeds |
|
123 |
return true; |
|
124 |
} |
|
125 |
||
126 |
if (!Modifier.isPublic(getClassAccessFlags(memberClass))) { |
|
127 |
isSameClassPackage = isSameClassPackage(currentClass, memberClass); |
|
128 |
gotIsSameClassPackage = true; |
|
129 |
if (!isSameClassPackage) { |
|
130 |
return false; |
|
131 |
} |
|
132 |
} |
|
133 |
||
134 |
// At this point we know that currentClass can access memberClass. |
|
135 |
||
136 |
if (Modifier.isPublic(modifiers)) { |
|
137 |
return true; |
|
138 |
} |
|
139 |
||
140 |
boolean successSoFar = false; |
|
141 |
||
142 |
if (Modifier.isProtected(modifiers)) { |
|
143 |
// See if currentClass is a subclass of memberClass |
|
144 |
if (isSubclassOf(currentClass, memberClass)) { |
|
145 |
successSoFar = true; |
|
146 |
} |
|
147 |
} |
|
148 |
||
149 |
if (!successSoFar && !Modifier.isPrivate(modifiers)) { |
|
150 |
if (!gotIsSameClassPackage) { |
|
151 |
isSameClassPackage = isSameClassPackage(currentClass, |
|
152 |
memberClass); |
|
153 |
gotIsSameClassPackage = true; |
|
154 |
} |
|
155 |
||
156 |
if (isSameClassPackage) { |
|
157 |
successSoFar = true; |
|
158 |
} |
|
159 |
} |
|
160 |
||
161 |
if (!successSoFar) { |
|
162 |
return false; |
|
163 |
} |
|
164 |
||
165 |
if (Modifier.isProtected(modifiers)) { |
|
166 |
// Additional test for protected members: JLS 6.6.2 |
|
10342
ca0984bc9d32
7077389: Reflection classes do not build with javac -Xlint:all -Werror
jjg
parents:
5506
diff
changeset
|
167 |
Class<?> targetClass = (target == null ? memberClass : target.getClass()); |
2 | 168 |
if (targetClass != currentClass) { |
169 |
if (!gotIsSameClassPackage) { |
|
170 |
isSameClassPackage = isSameClassPackage(currentClass, memberClass); |
|
171 |
gotIsSameClassPackage = true; |
|
172 |
} |
|
173 |
if (!isSameClassPackage) { |
|
174 |
if (!isSubclassOf(targetClass, currentClass)) { |
|
175 |
return false; |
|
176 |
} |
|
177 |
} |
|
178 |
} |
|
179 |
} |
|
180 |
||
181 |
return true; |
|
182 |
} |
|
183 |
||
10342
ca0984bc9d32
7077389: Reflection classes do not build with javac -Xlint:all -Werror
jjg
parents:
5506
diff
changeset
|
184 |
private static boolean isSameClassPackage(Class<?> c1, Class<?> c2) { |
2 | 185 |
return isSameClassPackage(c1.getClassLoader(), c1.getName(), |
186 |
c2.getClassLoader(), c2.getName()); |
|
187 |
} |
|
188 |
||
189 |
/** Returns true if two classes are in the same package; classloader |
|
190 |
and classname information is enough to determine a class's package */ |
|
191 |
private static boolean isSameClassPackage(ClassLoader loader1, String name1, |
|
192 |
ClassLoader loader2, String name2) |
|
193 |
{ |
|
194 |
if (loader1 != loader2) { |
|
195 |
return false; |
|
196 |
} else { |
|
197 |
int lastDot1 = name1.lastIndexOf('.'); |
|
198 |
int lastDot2 = name2.lastIndexOf('.'); |
|
199 |
if ((lastDot1 == -1) || (lastDot2 == -1)) { |
|
200 |
// One of the two doesn't have a package. Only return true |
|
201 |
// if the other one also doesn't have a package. |
|
202 |
return (lastDot1 == lastDot2); |
|
203 |
} else { |
|
204 |
int idx1 = 0; |
|
205 |
int idx2 = 0; |
|
206 |
||
207 |
// Skip over '['s |
|
208 |
if (name1.charAt(idx1) == '[') { |
|
209 |
do { |
|
210 |
idx1++; |
|
211 |
} while (name1.charAt(idx1) == '['); |
|
212 |
if (name1.charAt(idx1) != 'L') { |
|
213 |
// Something is terribly wrong. Shouldn't be here. |
|
214 |
throw new InternalError("Illegal class name " + name1); |
|
215 |
} |
|
216 |
} |
|
217 |
if (name2.charAt(idx2) == '[') { |
|
218 |
do { |
|
219 |
idx2++; |
|
220 |
} while (name2.charAt(idx2) == '['); |
|
221 |
if (name2.charAt(idx2) != 'L') { |
|
222 |
// Something is terribly wrong. Shouldn't be here. |
|
223 |
throw new InternalError("Illegal class name " + name2); |
|
224 |
} |
|
225 |
} |
|
226 |
||
227 |
// Check that package part is identical |
|
228 |
int length1 = lastDot1 - idx1; |
|
229 |
int length2 = lastDot2 - idx2; |
|
230 |
||
231 |
if (length1 != length2) { |
|
232 |
return false; |
|
233 |
} |
|
234 |
return name1.regionMatches(false, idx1, name2, idx2, length1); |
|
235 |
} |
|
236 |
} |
|
237 |
} |
|
238 |
||
10342
ca0984bc9d32
7077389: Reflection classes do not build with javac -Xlint:all -Werror
jjg
parents:
5506
diff
changeset
|
239 |
static boolean isSubclassOf(Class<?> queryClass, |
ca0984bc9d32
7077389: Reflection classes do not build with javac -Xlint:all -Werror
jjg
parents:
5506
diff
changeset
|
240 |
Class<?> ofClass) |
2 | 241 |
{ |
242 |
while (queryClass != null) { |
|
243 |
if (queryClass == ofClass) { |
|
244 |
return true; |
|
245 |
} |
|
246 |
queryClass = queryClass.getSuperclass(); |
|
247 |
} |
|
248 |
return false; |
|
249 |
} |
|
250 |
||
251 |
// fieldNames must contain only interned Strings |
|
10342
ca0984bc9d32
7077389: Reflection classes do not build with javac -Xlint:all -Werror
jjg
parents:
5506
diff
changeset
|
252 |
public static synchronized void registerFieldsToFilter(Class<?> containingClass, |
2 | 253 |
String ... fieldNames) { |
254 |
fieldFilterMap = |
|
255 |
registerFilter(fieldFilterMap, containingClass, fieldNames); |
|
256 |
} |
|
257 |
||
258 |
// methodNames must contain only interned Strings |
|
10342
ca0984bc9d32
7077389: Reflection classes do not build with javac -Xlint:all -Werror
jjg
parents:
5506
diff
changeset
|
259 |
public static synchronized void registerMethodsToFilter(Class<?> containingClass, |
2 | 260 |
String ... methodNames) { |
261 |
methodFilterMap = |
|
262 |
registerFilter(methodFilterMap, containingClass, methodNames); |
|
263 |
} |
|
264 |
||
10342
ca0984bc9d32
7077389: Reflection classes do not build with javac -Xlint:all -Werror
jjg
parents:
5506
diff
changeset
|
265 |
private static Map<Class<?>,String[]> registerFilter(Map<Class<?>,String[]> map, |
ca0984bc9d32
7077389: Reflection classes do not build with javac -Xlint:all -Werror
jjg
parents:
5506
diff
changeset
|
266 |
Class<?> containingClass, String ... names) { |
2 | 267 |
if (map.get(containingClass) != null) { |
268 |
throw new IllegalArgumentException |
|
269 |
("Filter already registered: " + containingClass); |
|
270 |
} |
|
10342
ca0984bc9d32
7077389: Reflection classes do not build with javac -Xlint:all -Werror
jjg
parents:
5506
diff
changeset
|
271 |
map = new HashMap<Class<?>,String[]>(map); |
2 | 272 |
map.put(containingClass, names); |
273 |
return map; |
|
274 |
} |
|
275 |
||
10342
ca0984bc9d32
7077389: Reflection classes do not build with javac -Xlint:all -Werror
jjg
parents:
5506
diff
changeset
|
276 |
public static Field[] filterFields(Class<?> containingClass, |
2 | 277 |
Field[] fields) { |
278 |
if (fieldFilterMap == null) { |
|
279 |
// Bootstrapping |
|
280 |
return fields; |
|
281 |
} |
|
282 |
return (Field[])filter(fields, fieldFilterMap.get(containingClass)); |
|
283 |
} |
|
284 |
||
10342
ca0984bc9d32
7077389: Reflection classes do not build with javac -Xlint:all -Werror
jjg
parents:
5506
diff
changeset
|
285 |
public static Method[] filterMethods(Class<?> containingClass, Method[] methods) { |
2 | 286 |
if (methodFilterMap == null) { |
287 |
// Bootstrapping |
|
288 |
return methods; |
|
289 |
} |
|
290 |
return (Method[])filter(methods, methodFilterMap.get(containingClass)); |
|
291 |
} |
|
292 |
||
293 |
private static Member[] filter(Member[] members, String[] filteredNames) { |
|
294 |
if ((filteredNames == null) || (members.length == 0)) { |
|
295 |
return members; |
|
296 |
} |
|
297 |
int numNewMembers = 0; |
|
298 |
for (Member member : members) { |
|
299 |
boolean shouldSkip = false; |
|
300 |
for (String filteredName : filteredNames) { |
|
301 |
if (member.getName() == filteredName) { |
|
302 |
shouldSkip = true; |
|
303 |
break; |
|
304 |
} |
|
305 |
} |
|
306 |
if (!shouldSkip) { |
|
307 |
++numNewMembers; |
|
308 |
} |
|
309 |
} |
|
310 |
Member[] newMembers = |
|
311 |
(Member[])Array.newInstance(members[0].getClass(), numNewMembers); |
|
312 |
int destIdx = 0; |
|
313 |
for (Member member : members) { |
|
314 |
boolean shouldSkip = false; |
|
315 |
for (String filteredName : filteredNames) { |
|
316 |
if (member.getName() == filteredName) { |
|
317 |
shouldSkip = true; |
|
318 |
break; |
|
319 |
} |
|
320 |
} |
|
321 |
if (!shouldSkip) { |
|
322 |
newMembers[destIdx++] = member; |
|
323 |
} |
|
324 |
} |
|
325 |
return newMembers; |
|
326 |
} |
|
16906
44dfee24cb71
8010117: Annotate jdk caller sensitive methods with @sun.reflect.CallerSensitive
mchung
parents:
14342
diff
changeset
|
327 |
|
44dfee24cb71
8010117: Annotate jdk caller sensitive methods with @sun.reflect.CallerSensitive
mchung
parents:
14342
diff
changeset
|
328 |
/** |
44dfee24cb71
8010117: Annotate jdk caller sensitive methods with @sun.reflect.CallerSensitive
mchung
parents:
14342
diff
changeset
|
329 |
* Tests if the given method is caller-sensitive and the declaring class |
44dfee24cb71
8010117: Annotate jdk caller sensitive methods with @sun.reflect.CallerSensitive
mchung
parents:
14342
diff
changeset
|
330 |
* is defined by either the bootstrap class loader or extension class loader. |
44dfee24cb71
8010117: Annotate jdk caller sensitive methods with @sun.reflect.CallerSensitive
mchung
parents:
14342
diff
changeset
|
331 |
*/ |
44dfee24cb71
8010117: Annotate jdk caller sensitive methods with @sun.reflect.CallerSensitive
mchung
parents:
14342
diff
changeset
|
332 |
public static boolean isCallerSensitive(Method m) { |
44dfee24cb71
8010117: Annotate jdk caller sensitive methods with @sun.reflect.CallerSensitive
mchung
parents:
14342
diff
changeset
|
333 |
final ClassLoader loader = m.getDeclaringClass().getClassLoader(); |
44dfee24cb71
8010117: Annotate jdk caller sensitive methods with @sun.reflect.CallerSensitive
mchung
parents:
14342
diff
changeset
|
334 |
if (sun.misc.VM.isSystemDomainLoader(loader) || isExtClassLoader(loader)) { |
44dfee24cb71
8010117: Annotate jdk caller sensitive methods with @sun.reflect.CallerSensitive
mchung
parents:
14342
diff
changeset
|
335 |
return m.isAnnotationPresent(CallerSensitive.class); |
44dfee24cb71
8010117: Annotate jdk caller sensitive methods with @sun.reflect.CallerSensitive
mchung
parents:
14342
diff
changeset
|
336 |
} |
44dfee24cb71
8010117: Annotate jdk caller sensitive methods with @sun.reflect.CallerSensitive
mchung
parents:
14342
diff
changeset
|
337 |
return false; |
44dfee24cb71
8010117: Annotate jdk caller sensitive methods with @sun.reflect.CallerSensitive
mchung
parents:
14342
diff
changeset
|
338 |
} |
44dfee24cb71
8010117: Annotate jdk caller sensitive methods with @sun.reflect.CallerSensitive
mchung
parents:
14342
diff
changeset
|
339 |
|
44dfee24cb71
8010117: Annotate jdk caller sensitive methods with @sun.reflect.CallerSensitive
mchung
parents:
14342
diff
changeset
|
340 |
private static boolean isExtClassLoader(ClassLoader loader) { |
44dfee24cb71
8010117: Annotate jdk caller sensitive methods with @sun.reflect.CallerSensitive
mchung
parents:
14342
diff
changeset
|
341 |
ClassLoader cl = ClassLoader.getSystemClassLoader(); |
44dfee24cb71
8010117: Annotate jdk caller sensitive methods with @sun.reflect.CallerSensitive
mchung
parents:
14342
diff
changeset
|
342 |
while (cl != null) { |
44dfee24cb71
8010117: Annotate jdk caller sensitive methods with @sun.reflect.CallerSensitive
mchung
parents:
14342
diff
changeset
|
343 |
if (cl.getParent() == null && cl == loader) { |
44dfee24cb71
8010117: Annotate jdk caller sensitive methods with @sun.reflect.CallerSensitive
mchung
parents:
14342
diff
changeset
|
344 |
return true; |
44dfee24cb71
8010117: Annotate jdk caller sensitive methods with @sun.reflect.CallerSensitive
mchung
parents:
14342
diff
changeset
|
345 |
} |
44dfee24cb71
8010117: Annotate jdk caller sensitive methods with @sun.reflect.CallerSensitive
mchung
parents:
14342
diff
changeset
|
346 |
cl = cl.getParent(); |
44dfee24cb71
8010117: Annotate jdk caller sensitive methods with @sun.reflect.CallerSensitive
mchung
parents:
14342
diff
changeset
|
347 |
} |
44dfee24cb71
8010117: Annotate jdk caller sensitive methods with @sun.reflect.CallerSensitive
mchung
parents:
14342
diff
changeset
|
348 |
return false; |
44dfee24cb71
8010117: Annotate jdk caller sensitive methods with @sun.reflect.CallerSensitive
mchung
parents:
14342
diff
changeset
|
349 |
} |
2 | 350 |
} |