You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tamaya.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/11/20 07:19:00 UTC
[jira] [Commented] (TAMAYA-348) Strange handling of prefix in
EnviornmentPropertySource
[ https://issues.apache.org/jira/browse/TAMAYA-348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16692758#comment-16692758 ]
ASF subversion and git services commented on TAMAYA-348:
--------------------------------------------------------
Commit ec2c803e6b843acb8ed99f8a1fc6bf6813488979 in incubator-tamaya's branch refs/heads/master from [~anatole]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-tamaya.git;h=ec2c803 ]
TAMAYA-348 Clarified/fixed init routine, adapted test.
> Strange handling of prefix in EnviornmentPropertySource
> -------------------------------------------------------
>
> Key: TAMAYA-348
> URL: https://issues.apache.org/jira/browse/TAMAYA-348
> Project: Tamaya
> Issue Type: Bug
> Components: Core
> Affects Versions: 0.3-incubating
> Reporter: Alexander Suter
> Assignee: Anatole Tresch
> Priority: Critical
> Fix For: 0.4-incubating
>
>
> 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:
> {code:java}
> String value = System.getProperty(TAMAYA_ENVPROPS_PREFIX);
> if(value==null){
> prefix = System.getenv(TAMAYA_ENVPROPS_PREFIX);
> }{code}
> Is this a bug?
> I don't understand why it will loaded as SystemProperty and not safed to the member variable 'prefix'?
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)