Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7149663

Extend DCmdArgument parsing for supporting multiple integral types

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • hs23
    • hs23
    • hotspot
    • None
    • svc
    • generic
    • generic

      There would be value in extending the supported datatypes in DCmdArgument parsing, esp for integrals - this can be done quite easily reworking the parser to support templated integral types.

      This way we can have more generic way of stating which datatypes to be used by the DCmd framework,

      for example:

      simple:

      DCmdArgument<jint> some_jint_arg(
          "jint_arg", "Total jint size of something",
          "", false, "10");

      complex:

      DCmdArgument<MemorySizeArgument<jlong>> complexSizeType(
          "my_complex_jlong_size_type", "complex jlong type",
          "", false, "10000000000");

      DCmdArgument<MemorySizeArgument<size_t>> complexSizeType2(
          "my_complex_size_t_size_type", "complex size_t type",
          "", false, "10000000");


      /Markus

            mgronlun Markus Grönlund
            mgronlun Markus Grönlund
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: