src/share/classes/sun/applet/AppletProps.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1995, 2003, 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. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 1995, 2014, 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. Oracle designates this
*** 73,88 ****
void reset() {
AppletSecurity security = (AppletSecurity) System.getSecurityManager();
if (security != null)
security.reset();
! String proxyhost = (String) AccessController.doPrivileged(
new GetPropertyAction("http.proxyHost"));
! String proxyport = (String) AccessController.doPrivileged(
new GetPropertyAction("http.proxyPort"));
! Boolean tmp = (Boolean) AccessController.doPrivileged(
new GetBooleanAction("package.restrict.access.sun"));
boolean packageRestrict = tmp.booleanValue();
if (packageRestrict) {
accessMode.select(amh.getMessage("choice.class.item.restricted"));
--- 73,88 ----
void reset() {
AppletSecurity security = (AppletSecurity) System.getSecurityManager();
if (security != null)
security.reset();
! String proxyhost = AccessController.doPrivileged(
new GetPropertyAction("http.proxyHost"));
! String proxyport = AccessController.doPrivileged(
new GetPropertyAction("http.proxyPort"));
! Boolean tmp = AccessController.doPrivileged(
new GetBooleanAction("package.restrict.access.sun"));
boolean packageRestrict = tmp.booleanValue();
if (packageRestrict) {
accessMode.select(amh.getMessage("choice.class.item.restricted"));