Skip to content

Commit 10800c9

Browse files
Hubbitusjsvd
authored andcommitted
Allow <clinit> special java method too
It supported many time: http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-2.html#jvms-2.9 Fixes #66
1 parent cb27df2 commit 10800c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

patterns/java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
JAVACLASS (?:[a-zA-Z$_][a-zA-Z$_0-9]*\.)*[a-zA-Z$_][a-zA-Z$_0-9]*
22
#Space is an allowed character to match special cases like 'Native Method' or 'Unknown Source'
33
JAVAFILE (?:[A-Za-z0-9_. -]+)
4-
#Allow special <init> method
5-
JAVAMETHOD (?:(<init>)|[a-zA-Z$_][a-zA-Z$_0-9]*)
4+
#Allow special <init>, <clinit> methods
5+
JAVAMETHOD (?:(<(?:cl)?init>)|[a-zA-Z$_][a-zA-Z$_0-9]*)
66
#Line number is optional in special cases 'Native method' or 'Unknown source'
77
JAVASTACKTRACEPART %{SPACE}at %{JAVACLASS:class}\.%{JAVAMETHOD:method}\(%{JAVAFILE:file}(?::%{NUMBER:line})?\)
88
# Java Logs

0 commit comments

Comments
 (0)