-
Bug
-
Resolution: Fixed
-
P2
-
6, 6u11
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2171205 | 6u14 | Philip Race | P3 | Closed | Fixed | b01 |
The following program will throw an exception on some configurations :
specifically terminal servers such as Citrix where the results of
GetWindowsDirectory() and GetSystemDirectory() point to different drives
import java.awt.*;
import java.awt.image.*;
public class SF {
private boolean ranTest;
public static void main(String[] args) {
System.setSecurityManager(new SecurityManager());
Font f = new Font("Verdana", Font.PLAIN, 12);
BufferedImage bi= new BufferedImage(1,1,1);
Graphics2D g = bi.createGraphics();
g.setFont(f);
System.out.println(g.getFontMetrics());
}
}
specifically terminal servers such as Citrix where the results of
GetWindowsDirectory() and GetSystemDirectory() point to different drives
import java.awt.*;
import java.awt.image.*;
public class SF {
private boolean ranTest;
public static void main(String[] args) {
System.setSecurityManager(new SecurityManager());
Font f = new Font("Verdana", Font.PLAIN, 12);
BufferedImage bi= new BufferedImage(1,1,1);
Graphics2D g = bi.createGraphics();
g.setFont(f);
System.out.println(g.getFontMetrics());
}
}
- backported by
-
JDK-2171205 SecurityException locating physical fonts on Windows Terminal Server
-
- Closed
-
- duplicates
-
JDK-6785354 REG: getFontMetrics throws AccessControlException with unsigned applet in 6u11
-
- Closed
-