hotspot/src/share/vm/runtime/arguments.cpp
changeset 33968 2a017139daf3
parent 32200 994e76a280d4
parent 33967 c500568a6ecf
child 33971 d67c7d278ecc
equal deleted inserted replaced
32256:3966bd3b8167 33968:2a017139daf3
   220 
   220 
   221 // Update/Initialize System properties after JDK version number is known
   221 // Update/Initialize System properties after JDK version number is known
   222 void Arguments::init_version_specific_system_properties() {
   222 void Arguments::init_version_specific_system_properties() {
   223   enum { bufsz = 16 };
   223   enum { bufsz = 16 };
   224   char buffer[bufsz];
   224   char buffer[bufsz];
   225   const char* spec_vendor = "Sun Microsystems Inc.";
   225   const char* spec_vendor = "Oracle Corporation";
   226   uint32_t spec_version = 0;
   226   uint32_t spec_version_major = 0;
   227 
   227 
   228   spec_vendor = "Oracle Corporation";
   228   spec_version_major = JDK_Version::current().major_version();
   229   spec_version = JDK_Version::current().major_version();
   229   jio_snprintf(buffer, bufsz, UINT32_FORMAT, spec_version_major);
   230   jio_snprintf(buffer, bufsz, "1." UINT32_FORMAT, spec_version);
       
   231 
   230 
   232   PropertyList_add(&_system_properties,
   231   PropertyList_add(&_system_properties,
   233       new SystemProperty("java.vm.specification.vendor",  spec_vendor, false));
   232       new SystemProperty("java.vm.specification.vendor",  spec_vendor, false));
   234   PropertyList_add(&_system_properties,
   233   PropertyList_add(&_system_properties,
   235       new SystemProperty("java.vm.specification.version", buffer, false));
   234       new SystemProperty("java.vm.specification.version", buffer, false));