Skip to content

Commit a456b62

Browse files
committed
Fix child error
1 parent 33073b3 commit a456b62

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

sources/net.sf.j2s.core/src/net/sf/j2s/core/astvisitors/ASTScriptVisitor.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,18 +277,23 @@ public boolean visit(AnonymousClassDeclaration node) {
277277
//}
278278
// there are no static members/methods in the inner type
279279
// but there are static final members
280-
// } else if (element instanceof Initializer) {
281-
// continue;
280+
} else if (element instanceof Initializer) {
281+
System.out.println(element);
282+
continue;
282283
} else if (element instanceof FieldDeclaration
283284
/*&& isFieldNeedPreparation((FieldDeclaration) element)*/) {
284285
// continue;
285286
FieldDeclaration fieldDeclaration = (FieldDeclaration) element;
286287
if (isFieldNeedPreparation(fieldDeclaration)) {
287-
visitWith(fieldDeclaration, true);
288+
visitWith(fieldDeclaration, true);
288289
continue;
289290
}
290291
}
292+
293+
//buffer.append("//Testing " + element + "\n");
291294
element.accept(this);
295+
//buffer.append("//Testing after " + element.getClass().getName() + "\n");
296+
292297
// element.accept(this);
293298
}
294299

0 commit comments

Comments
 (0)