Cosminexus アプリケーションサーバ V8 リファレンス 定義編(サーバ定義)
日立固有のJavaVM拡張オプションの詳細について説明します。
なお,本文中では,次のJavaプログラムを例として使用しています。
class Example1 {
public static void main(String[] args) {
Example1 e1 = new Example1();
Object obj = new Object();
e1.method(1, 'Q', obj); // 5行目
}
void method(int l1, char l2, Object l3) {
float l4 = 4.0f;
boolean l5 = true;
double l6 = Double.MAX_VALUE; // double型の最大値
Object[] l7 = new Object[10];
try {
<例外発生!> // 15行目
} catch (Exception e) {
e.printStackTrace();
}
}
}
|
class Example2 {
public static void main(String[] args) {
Example2 e2 = new Example2();
e2.method(); // 4行目
}
synchronized void method() {
int l1 = 1;
float l2 = 2.0f;
String l3 = "local 3";
Character l4 = new Character('X');
Object l5 = new Thread();
Object[] l6 = new Thread[10];
<ここでスレッドダンプ出力!> // 15行目
}
}
|
class Example3 {
public static void main(String[] args) {
Example3 e3 = new Example3();
e3.method(); // 4行目
}
void method() {
String l1 = "local 1";
StringBuffer l2 = new StringBuffer(l1);
l2.append(" + local 2");
Boolean l3 = new Boolean(false);
Character l4 = new Character('X');
Long l5 = new Long(Long.MIN_VALUE); // long型の最小値
Object l6 = new Thread();
Object[] l7 = new Thread[10];
try {
<例外発生!> // 18行目
} catch (Exception e) {
e.printStackTrace();
}
}
public String toString() {
return "I am an Example3 instance.";
}
}
|
All Rights Reserved. Copyright (C) 2008, 2011, Hitachi, Ltd.