Skip to content

Commit f3c2604

Browse files
author
Jaroslav Bachorik
committed
Fix btraceio#89 : messages.properties cleanup
1 parent b5cf1b8 commit f3c2604

1 file changed

Lines changed: 14 additions & 10 deletions

File tree

src/share/classes/com/sun/btrace/resources/messages.properties

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# BTrace "compile time" and runtime error messages.
22

3-
no.string.concatenation = + operator on strings is not allowed, use 'strcat' instead
43
return.type.should.be.void = btrace probe methods must return void
54
btrace.program.should.be.class = btrace program must be a class (not interface or enum)
65
no.complex.unsafe.value = @BTrace.unsafe value should be only a plain boolean
@@ -42,7 +41,7 @@ duration.desc.invalid = @Duration annotation applicable only for Kind.RETURN and
4241
called-method.desc.invalid = @CalledMethod annotation applicable only for Kind.CALL
4342
called-instance.desc.invalid = @CalledInstance annotation applicable only for Kind.CALL
4443
onexit.invalid = @OnExit annotation applicable only to methods with signature (int)void
45-
onexit.invalid = @OnError annotation applicable only to methods with signature (java.lang.Throwable)void
44+
onerror.invalid = @OnError annotation applicable only to methods with signature (java.lang.Throwable)void
4645

4746
agent.no.instance.variables=instance variables are not allowed
4847
agent.unsafe.not.allowed=Unsafe mode, requested by the script, not allowed
@@ -68,13 +67,18 @@ btrace.usage =\
6867
btrace.agent.usage =\
6968
Usage: java -javaagent:java-agent.jar=<arguments> <main class> <application arguments>\n\
7069
where arguments is comma separated name=value pairs. Argument names include:\n \
71-
debug boolean flag to specify debug mode\n \
72-
dumpClasses boolean flag to specify whether to dump .classes for instrumented classes\n \
73-
dumpDir directory where instrumented .class files are saved\n \
74-
help print this help message\n \
75-
noServer boolean flag to specify whether to start btrace server or not\n \
76-
port btrace agent server port\n \
77-
probeDescPath directories where @OnProbe mapping descriptor XML files are searched\n \
78-
script pre-compiled btrace .class file as initial script\n \
70+
bootClassPath boot classpath to be used\n \
71+
systemClassPath system classpath to be used\n \
72+
debug boolean flag to specify debug mode\n \
73+
dumpClasses boolean flag to specify whether to dump .classes for instrumented classes\n \
74+
dumpDir directory where instrumented .class files are saved\n \
75+
help print this help message\n \
76+
noServer boolean flag to specify whether to start btrace server or not\n \
77+
port btrace agent server port\n \
78+
probeDescPath directories where @OnProbe mapping descriptor XML files are searched\n \
79+
stdout redirect the btrace output to stdout instead of writing it to an arbitrary file (true/false)\n \
80+
scriptdir the path to a directory containing scripts to be run at the agent startup\n \
81+
scriptOutputFile the path to a file the btrace agent will store its output\n \
82+
script comma separated list of compiled tracing scripts to be run at the agent startup; *MUST* be the last argument in the list\n \
7983
8084

0 commit comments

Comments
 (0)