juneau-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Bognar (Jira)" <j...@apache.org>
Subject [jira] [Created] (JUNEAU-143) Static files mapping doesn't properly handle override scenarios.
Date Sun, 08 Sep 2019 14:21:00 GMT
James Bognar created JUNEAU-143:
-----------------------------------

             Summary: Static files mapping doesn't properly handle override scenarios.
                 Key: JUNEAU-143
                 URL: https://issues.apache.org/jira/browse/JUNEAU-143
             Project: Juneau
          Issue Type: Bug
          Components: Code
    Affects Versions: 8.1.0
            Reporter: James Bognar
            Assignee: James Bognar


The order of lookup of files in RestResource.staticFiles is incorrect in the override scenario. 

In the following example, if a file resides in both the parent and child "bar" subpackages,
the parent file is returned instead of the child.  This is not the correct behavior. 

{{@RestResource(staticFiles="foo:bar")}}
{{public class ParentResource {}}}

{{}}{{@RestResource(staticFiles="foo:bar")}}
{{public class ChildResource extends ParentResource{}}}

 



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Mime
View raw message