Skip to content

Commit c57b152

Browse files
committed
#99 Seems QDox 2.0.1 has issue parsing parameter names named "recordList"
1 parent c887457 commit c57b152

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/grammar/lexer.flex

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ JavadocEnd = "*"+ "/"
308308
pushState(NAME);
309309
return Parser.ENUM;
310310
}
311-
"record" / {WhiteSpace}* {Id} {
311+
"record" / {WhiteSpace}+ {Id} {
312312
markAnnotatedElementLine();
313313
classDepth++;
314314
braceMode = CODEBLOCK;

src/test/java/com/thoughtworks/qdox/RecordsTest.java

+8
Original file line numberDiff line numberDiff line change
@@ -164,4 +164,12 @@ public void recordAsTypeAndIdentifiers() {
164164
+ "}";
165165
builder.addSource( new StringReader(source) );
166166
}
167+
168+
@Test
169+
public void parametersContainingRecord() {
170+
String source = "interface Example{\n"
171+
+ " void apply(Object recordList);"
172+
+ "}";
173+
builder.addSource( new StringReader(source) );
174+
}
167175
}

0 commit comments

Comments
 (0)