Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-728

Make NamespaceFilter.ISPN_NS not rely on hardcoded version

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Major
    • 4.2.0.ALPHA5
    • 4.2.0.ALPHA4
    • None
    • None

    Description

      From Vladimir:

      "I coded this part and I thought it was an accident waiting to happen. However, I could not use expression "urn:infinispan:config:" + Version.getMajorVersion() because compiler forces us to use constant expressions [1] here.

      If you agree we can add another public static field in Version.java:
      public static final String MAJOR_VERSION = "4.2";

      Maybe we have similar use cases somewhere else as well!

      [1] http://java.sun.com/docs/books/jls/third_edition/html/expressions.html#15.28"

      Attachments

        Issue Links

          Activity

            People

              rh-ee-galder Galder ZamarreƱo
              rh-ee-galder Galder ZamarreƱo
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: