Uploaded image for project: 'Velocity'
  1. Velocity
  2. VELOCITY-855

Only first static class in context available

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7
    • 2.1
    • Engine
    • None
    • JDK 1.8.0_25
      Windows
      Maven 3.2.1

    Description

      java :-

      Both classes are in the .

      VelocityContext velocityContext = new VelocityContext();
      // Utility objects
      velocityContext.put("elementKind", javax.lang.model.element.ElementKind.class);
      velocityContext.put("typeKind", javax.lang.model.type.TypeKind.class);

      template.vm :-

      $elementKind.valueOf("ENUM")
      $typeKind.valueOf("DECLARED")

      The second call fails. Commenting either works.

      Attachments

        Issue Links

          Activity

            People

              cbrisson Claude Brisson
              cobraflow Lewis Henderson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: