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

Only first static class in context available

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7
    • Fix Version/s: 2.1
    • Component/s: Engine
    • Labels:
      None
    • Environment:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: