kamlendrachauhan / modsl

Automatically exported from code.google.com/p/modsl
0 stars 0 forks source link

error java.lang.NoSuchFieldError: type at org.modsl.antlr.uml.UMLLexer.mT22(UMLLexer.java:253) #46

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
that´s my code:

        try{
        StyleLoader stl = new StyleLoader();
        stl.load("cfg/uml:cfg", "uml", UMLMetaType.class);
        UMLTranslator translator = new UMLTranslator();
        String cls = "class diagram Sample {  abstract class 
AbstractElement {      name; parent; type;   } }";
        BufferedImage image = translator.translate(cls);
        ImageIO.write(image, "png", new File("diagram.png"));
        }catch(Exception e){
            e.printStackTrace();
        }

jars : antlr-runtime-3.2.jar and modsl-core-0.6.4-SNAPSHOT (1).jar

java 5.0

Original issue reported on code.google.com by wafen...@gmail.com on 26 Sep 2009 at 12:31

GoogleCodeExporter commented 8 years ago
This appears to be an issue because of ANTLR runtime version incompatibility 
(3.2 vs
3.0). Please retest with 3.0 runtime and let me know.

Original comment by avi...@gmail.com on 28 Sep 2009 at 3:51

GoogleCodeExporter commented 8 years ago
it works fine when i change antlr to 3.0 tks a lot for the help.

there´s a way of the aggregation be named?

Original comment by wafen...@gmail.com on 28 Sep 2009 at 5:02

GoogleCodeExporter commented 8 years ago
Downgrading to ANTLR runtime 3.0 resolves the issue, closing defect

Original comment by avi...@gmail.com on 28 Sep 2009 at 5:05