Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,12 @@ public boolean visit(
@Override
public boolean visit(
ClassInstanceCreation node) {
if (node.getAnonymousClassDeclaration() != null) {
throw new ParsingException("anonymous-class",
ParsingException.Type.UNSUPPORTED_STATEMENT,
"Anonymous classes are not supported.",
getSourceCodeLocation(node));
}
TypeASTVisitor typeVisitor = new TypeASTVisitor(parserContext, source, compilationUnit, container);
node.getType().accept(typeVisitor);
Type type = typeVisitor.getType();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ public void urldecoder2_test() throws IOException {
perform(conf);
}

@Test
@Ignore // Ignored due to anonymous class.
public void Basic1_test() throws IOException {
// this test had troublesome parsing errors,
// but it is too complex to thoroughly check its results
Expand Down
Loading