我想从GWT生成器复制用于调试目的的生成代码
为了做到这一点,我编写了这段代码,但它无效:
printWriter = new PrintWriter(
new TeeOutputStream(
new WriterOutputStream(context.tryCreate(logger, packageName, className)), // Main writer
new FileOutputStream(new File(System.getProperty("java.io.tmpdir") + File.separator + className + ".java")) // Debug writer
)
);
GWT的错误是Generator attempted to commit an unknown PrintWriter
还有其他方法吗?