Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

engine.createTemplate("你好") 编译失败 #53

Closed
subchen opened this issue Dec 16, 2013 · 0 comments
Closed

engine.createTemplate("你好") 编译失败 #53

subchen opened this issue Dec 16, 2013 · 0 comments
Assignees
Labels
Milestone

Comments

@subchen
Copy link
Owner

subchen commented Dec 16, 2013

public static void main(String[] args) {
    JetEngine engine = JetEngine.create();
    JetTemplate template = engine.createTemplate("你好");
    StringWriter writer = new StringWriter();
    template.render(new HashMap(), writer);
    System.out.println(writer.toString());
}
[main] INFO jetbrick.template.JetTemplate - Loading template source file: (unknown)
Exception in thread "main" jetbrick.template.compiler.CompileErrorException: Compilation failed.
C:\Users\guoqiche\AppData\Local\Temp\jetx\.java:6: <identifier> expected
   4: 
   5: @SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"})
   6: public final class  extends JetPage {
                        ^
1 error(s)

    at jetbrick.template.compiler.jdk.JdkCompiler.generateJavaClass(JdkCompiler.java:142)
    at jetbrick.template.compiler.jdk.JdkCompiler.compile(JdkCompiler.java:113)
    at jetbrick.template.JetTemplate.compileAndLoadClass(JetTemplate.java:116)
    at jetbrick.template.JetTemplate.<init>(JetTemplate.java:70)
    at jetbrick.template.JetEngine.createTemplate(JetEngine.java:111)
    at TestCase.main(TestCase.java:9)
@ghost ghost assigned subchen Dec 16, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant