rewrite
rewrite copied to clipboard
accumulo-proxy with Common Static Analysis
We've run into some issues running the Common Static Analysis recipe on the AST for accumulo-proxy (https://github.com/apache/accumulo-proxy). The issue seems to be in JavaTemplate running on a 38k line template based on some code generated by thrift. The javatemplate compilation never completes.
The BlockStatementTemplateGenerator is building a very large template for the AccumuloProxy.java Source file. There are a large number of sibling classes, each of which is fully templated since BlockStatementTemplateGenerator considers their method/variable declarations as being required. The solution is to either filter out any unnecessary types or auto-generate stubs.