comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/AnnotationProcessor.java @ 18804:07b61dff860f

Truffle-DSL: disable model dumping on error as they can produce a message that is too long for eclipse to handle.
author Christian Humer <christian.humer@gmail.com>
date Fri, 09 Jan 2015 16:01:11 +0100
parents 714f4931b02c
children
comparison
equal deleted inserted replaced
18803:65234356d0c5 18804:07b61dff860f
79 if (model != null) { 79 if (model != null) {
80 CodeTypeElement unit; 80 CodeTypeElement unit;
81 try { 81 try {
82 unit = factory.create(ProcessorContext.getInstance(), model); 82 unit = factory.create(ProcessorContext.getInstance(), model);
83 } catch (Throwable e) { 83 } catch (Throwable e) {
84 throw new RuntimeException(String.format("Failed to write code for %s. Parserdump:%s.", ElementUtils.getQualifiedName(type), model.dump()), e); 84 throw new RuntimeException(String.format("Failed to write code for %s. Parserdump:%s.", ElementUtils.getQualifiedName(type), ""), e);
85 } 85 }
86 if (unit == null) { 86 if (unit == null) {
87 return; 87 return;
88 } 88 }
89 unit.setGeneratorAnnotationMirror(model.getTemplateTypeAnnotation()); 89 unit.setGeneratorAnnotationMirror(model.getTemplateTypeAnnotation());