hotspot/src/share/vm/runtime/arguments.cpp
changeset 28175 e1fed6244e90
parent 28034 f46051dc7d51
child 28214 0b2894b5e67c
equal deleted inserted replaced
28174:6e48d3b8d791 28175:e1fed6244e90
  2995       CommandLineFlags::printFlags(tty, false);
  2995       CommandLineFlags::printFlags(tty, false);
  2996       vm_exit(0);
  2996       vm_exit(0);
  2997 #endif
  2997 #endif
  2998     // -D
  2998     // -D
  2999     } else if (match_option(option, "-D", &tail)) {
  2999     } else if (match_option(option, "-D", &tail)) {
  3000       if (match_option(option, "-Djava.endorsed.dirs=", &tail)) {
  3000       const char* value;
       
  3001       if (match_option(option, "-Djava.endorsed.dirs=", &value) &&
       
  3002             *value!= '\0' && strcmp(value, "\"\"") != 0) {
  3001         // abort if -Djava.endorsed.dirs is set
  3003         // abort if -Djava.endorsed.dirs is set
  3002         jio_fprintf(defaultStream::output_stream(),
  3004         jio_fprintf(defaultStream::output_stream(),
  3003           "-Djava.endorsed.dirs is not supported. Endorsed standards and standalone APIs\n"
  3005           "-Djava.endorsed.dirs=%s is not supported. Endorsed standards and standalone APIs\n"
  3004           "in modular form will be supported via the concept of upgradeable modules.\n");
  3006           "in modular form will be supported via the concept of upgradeable modules.\n", value);
  3005         return JNI_EINVAL;
  3007         return JNI_EINVAL;
  3006       }
  3008       }
  3007       if (match_option(option, "-Djava.ext.dirs=", &tail)) {
  3009       if (match_option(option, "-Djava.ext.dirs=", &value) &&
       
  3010             *value != '\0' && strcmp(value, "\"\"") != 0) {
  3008         // abort if -Djava.ext.dirs is set
  3011         // abort if -Djava.ext.dirs is set
  3009         jio_fprintf(defaultStream::output_stream(),
  3012         jio_fprintf(defaultStream::output_stream(),
  3010           "-Djava.ext.dirs is not supported.  Use -classpath instead.\n");
  3013           "-Djava.ext.dirs=%s is not supported.  Use -classpath instead.\n", value);
  3011         return JNI_EINVAL;
  3014         return JNI_EINVAL;
  3012       }
  3015       }
  3013 
  3016 
  3014       if (!add_property(tail)) {
  3017       if (!add_property(tail)) {
  3015         return JNI_ENOMEM;
  3018         return JNI_ENOMEM;