src/share/jaxws_classes/com/sun/xml/internal/bind/v2/runtime/reflect/opt/Injector.java

changeset 408
b0610cd08440
parent 286
f50545b5e2f1
child 637
9c07ef4934dd
equal deleted inserted replaced
405:cc682329886b 408:b0610cd08440
1 /* 1 /*
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 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
154 // impossible 154 // impossible
155 throw new NoSuchMethodError(e.getMessage()); 155 throw new NoSuchMethodError(e.getMessage());
156 } 156 }
157 AccessController.doPrivileged(new PrivilegedAction<Void>() { 157 AccessController.doPrivileged(new PrivilegedAction<Void>() {
158 158
159 @Override
159 public Void run() { 160 public Void run() {
160 // TODO: check security implication 161 // TODO: check security implication
161 // do these setAccessible allow anyone to call these methods freely?s 162 // do these setAccessible allow anyone to call these methods freely?s
162 defineClass.setAccessible(true); 163 defineClass.setAccessible(true);
163 resolveClass.setAccessible(true); 164 resolveClass.setAccessible(true);

mercurial