FIX: System.getproperty("") Returns Null


The Microsoft virtual machine (Microsoft VM) build 1518 and earlier returns null
while attempting to use System.getProperty("") to determine the
users login name.


This is a bug and has been fixed in the Microsoft virtual machine
that ships with the SDK 2.01 for Java.


Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This bug has been corrected in the
Microsoft VM that is provided in the SDK 2.01 for Java.


To reproduce the problem:

Create a Java Project and include the following class to it:

class TestProperty{   public static void main(String args[])   {     System.out.println(System.getProperty(""));   }}
With earlier Microsoft VMs, this will return null. However
with the Microsoft VM included with the SDK 2.01 for
Java, it will correctly return the user's login name.


For the latest Knowledge Base articles and other support information on
Visual J++ and the SDK for Java, see the following pages on the Microsoft
Technical Support site:


Id. de artículo: 177175 - Última revisión: 02/14/2017 - Revisión: 1

Microsoft Virtual Machine for Java, Microsoft Software Development Kit for Java 1.5, Microsoft Software Development Kit for Java 1.51, Microsoft Software Development Kit for Java 2.02