[prev in list] [next in list] [prev in thread] [next in thread]
List: openjdk-2d-dev
Subject: [OpenJDK 2D-Dev] [9] RFR: PrinterJob.getUserName() throws a security exception when user.name permis
From: prasanta sadhukhan <prasanta.sadhukhan () oracle ! com>
Date: 2016-04-06 11:48:42
Message-ID: 5704F4CA.3020108 () oracle ! com
[Download RAW message or body]
Hi All,
Please review a document fix for jdk9
Bug: https://bugs.openjdk.java.net/browse/JDK-6197099
webrev: http://cr.openjdk.java.net/~psadhukhan/6197099/webrev.00/
PrinterJob.getUserName() is supposed to return the current user name of
the system. This method does not document any exception.
But when SecurityManager is installed, this method throws a security
exception when PropertyPermission - user.name is not given in the policy
file.
But this is not documented anywhere and hence the user will not know
until he gets the exception.
Documented the long-standing existing exception.
will raise a ccc after the technical review.
Regards
Prasanta
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic