Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-1643

Please use parser.getASTFactory().setASTNodeClass(GroovySourceAST.class)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.6-rc-1, 1.5.8, 1.7-beta-1
    • None
    • None

    Description

      Please use
      parser.getASTFactory().setASTNodeClass(GroovySourceAST.class);
      instead of
      parser.setASTNodeClass("org.codehaus.groovy.antlr.GroovySourceAST");
      in the JavaRecognizer and GroovyRecognizer because else it breakes the classloader in some cases.

      Thanks
      Richard Musiol

      PS: The help icon right to this description box in "Create Issue" doesn't work.

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            neelance Richard Musiol
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: