system reserved property names

huizhe wang huizhe.wang at oracle.com
Fri Apr 26 03:29:42 UTC 2013


On 4/18/2013 7:44 PM, David Holmes wrote:
> On 19/04/2013 8:32 AM, huizhe wang wrote:
>>
>> On 4/18/2013 2:13 AM, Alan Bateman wrote:
>>> On 18/04/2013 07:28, huizhe wang wrote:
>>>> System.getProperties [1] returns all of the "current" system
>>>> properties. Is there a way to get a list of the system reserved
>>>> properties such as "java.version" and etc.? Would anyone know?
>>>>
>>>>
>>>> [1]http://docs.oracle.com/javase/6/docs/api/java/lang/System.html#getProperties%28%29 
>>>>
>>>>
>>> I'm not 100% sure what you mean by "reserved" but I will guess that
>>> you asking if there is a complete list of the system properties
>>> defined by the Java SE APIs and perhaps the list of JDK-specific
>>> system properties too. Off-hand, I'm not aware of a master list, they
>>> are instead "buried" in the API specs. Is the context the system
>>> properties that JAXP 1.5 is proposing to define?
>>
>> Yes, those defined by the Java SE APIs or the JDK-specific system
>> properties. Not related to JAXP 1.5, I'm just asking a general question
>> to find out if there's an API to get the 'master' list.
>
> As with Alan I don't know what you mean by "reserved". The 
> documentation you link to above tells you what properties must exist. 
> But an implementation can add other properties. I don't know if there 
> is any rule that says they can't add properties in the java.* namespace.

I meant to ask if there's an API to get the list of JDK-specific system 
properties, and it seems there's none.

Thanks,
Joe

>
> David
>
>> -Joe
>>
>>
>>> -Alan
>>




More information about the core-libs-dev mailing list