You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tamaya.apache.org by "John D. Ament (JIRA)" <ji...@apache.org> on 2016/10/23 13:49:58 UTC

[jira] [Assigned] (TAMAYA-181) Warning-"Flood" from SimplePropertySource

     [ https://issues.apache.org/jira/browse/TAMAYA-181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John D. Ament reassigned TAMAYA-181:
------------------------------------

    Assignee: John D. Ament

> Warning-"Flood" from SimplePropertySource
> -----------------------------------------
>
>                 Key: TAMAYA-181
>                 URL: https://issues.apache.org/jira/browse/TAMAYA-181
>             Project: Tamaya
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.2-incubating
>         Environment: any
>            Reporter: Jürg Spiess
>            Assignee: John D. Ament
>            Priority: Minor
>             Fix For: 0.3-incubating
>
>
> If the constructor
> {code}public SimplePropertySource(URL propertiesLocation){code} is used, STDOUT is flooded with warnings about "missing name".
> Solution:
> {code}
>     public SimplePropertySource(URL propertiesLocation) {
>         super(0);
>         // switch the next 2 lines: name should be set BEFORE load(...)!
>         this.properties = load(propertiesLocation);
>         this.name = propertiesLocation.toString();
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)