Skip to content

Commit bf1aebe

Browse files
author
zhourenjian
committed
Fixed bug on methods stack error while compiling classes which are extending SimplePipeRunnable
1 parent effc971 commit bf1aebe

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,6 +1144,26 @@ public void endVisit(MethodDeclaration node) {
11441144
return;
11451145
}
11461146
}
1147+
String[] pipeMethods = new String[] {
1148+
"isPipeLive",
1149+
"keepPipeLive",
1150+
"pipeDestroy",
1151+
"pipeSetup",
1152+
"pipeThrough",
1153+
"through",
1154+
"pipeInit",
1155+
"pipeMonitoring",
1156+
"pipeMonitoringInterval",
1157+
"setPipeHelper",
1158+
"updateStatus"
1159+
};
1160+
for (int i = 0; i < pipeMethods.length; i++) {
1161+
if (Bindings.isMethodInvoking(mBinding, "net.sf.j2s.ajax.SimplePipeRunnable", pipeMethods[i])) {
1162+
if (getJ2SDocTag(node, "@j2sKeep") == null) {
1163+
return;
1164+
}
1165+
}
1166+
}
11471167
if (mBinding != null) {
11481168
methodDeclareStack.pop();
11491169
}

0 commit comments

Comments
 (0)