Uploaded image for project: 'Tamaya'
  1. Tamaya
  2. TAMAYA-348

Strange handling of prefix in EnviornmentPropertySource

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 0.3-incubating
    • 0.4-incubating
    • Core
    • None

    Description

      Hi all

      I just checked the following code:

      https://github.com/apache/incubator-tamaya/blob/27d62b056015c5350431ad1dab3cb2be1bede821/code/spi-support/src/main/java/org/apache/tamaya/spisupport/propertysource/EnvironmentPropertySource.java#L136

      For example this one:

      String value = System.getProperty(TAMAYA_ENVPROPS_PREFIX);
      if(value==null){
         prefix = System.getenv(TAMAYA_ENVPROPS_PREFIX);
      }

      Is this a bug?

      I don't understand why it will loaded as SystemProperty and not safed to the member variable 'prefix'?

       

       

      Attachments

        Activity

          People

            anatole Anatole Tresch
            alexsuter Alexander Suter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: