Hitachi

Hitachi Application Server V10 Definition Reference Guide (For UNIX® Systems)


7.10.4 -XX:[+|-]HitachiLocalsSimpleFormat

-XX:[+|-]HitachiLocalsSimpleFormat changes the output format of the local variable information to the simple output format, where one variable is output per line.

Description

-XX:[+|-]HitachiLocalsSimpleFormat changes the output format of the local variable information to the simple output format, where one variable is output per line.

Prerequisite options
  • -XX:+HitachiLocalsInThrowable

  • -XX:+HitachiLocalsInStackTrace

Format of output
    locals: 
      (type) name = value
      (type) name = value
...

The following provides details on the output content.

Output item

Output content

name

Local variable name.

If this variable is passed to a method, [arg***] (*** indicates the argument number) appears after the variable name.

type

Type of the local variable (basic type, class name, or array type).

value

String that represents the value of the local variable.

  • Basic type

    Character string that is generated by converting the value

  • Class or array type

    When the variable is null:(null)

    Other: address_where_the_object_exists

The maximum number of characters that represent the value is 64. If the maximum number is exceeded, the first 64 characters and the character string "..." are output. For class or array type, you can add more detailed expressions by specifying the following additional options:

  • -XX:+HitachiLocalsSimpleFormat

  • -XX:+HitachiTrueTypeInLocals

  • -XX:HitachiCallToString

Syntax

-XX:[+|-]HitachiLocalsSimpleFormat

Specifiable values

Type: String

-XX:+HitachiLocalsSimpleFormat

Outputs the local variable information in the simple format.

-XX:-HitachiLocalsSimpleFormat

Outputs the local variable information in the normal format.

Default value

If the definition item is omitted:

-XX:-HitachiLocalsSimpleFormat

Examples

An output example when the following Java program example is used is shown below.

Java program example
class Example1 {
    public static void main(String[] args) {
        Example1 e1 = new Example1();
        Object obj = new Object();
        e1.method(1, 'Q', obj);  // 5th line
    }
 
    void method(int l1, char l2, Object l3) {
        float l4 = 4.0f;
        boolean l5 = true;
        double l6 = Double.MAX_VALUE; // Maximum value of the double data type
        Object[] l7 = new Object[10];
 
        try {
          <An exception occurred!>  // 15th line
        } catch (Exception e) {
          e.printStackTrace();
        }
    }
}
Example of output
  at Example1.method(Example1.java:15)
    locals: 
      (Example1) this = <0x922f42d0>
      (int) l1 [arg1] = 1
      (char) l2 [arg2] = 'Q'
      (java.lang.Object) l3 [arg3] = <0xaf112f08>
      (float) l4 = 4
      (boolean) l5 = true
      (double) l6 = 1.79769E+308
      (java.lang.Object[]) l7 = <0x922f42d8>
  at Example1.main(Example1.java:5)
    locals: 
...