On 22/10/2016 02:20, Stephen Felts wrote:
It's happening on multiple resources in our build.
Below is the best stack trace.
Note that the only difference between JDK9 (where it works) and Jigsaw (where
it fails) on build 140 in java/util/ResourceBundle.java is
3170c3168
< URL url = loader.getResource(resourceName);
---
URL url = getResourceInUnnamedModule(loader,
resourceName);
Thanks for the bug report, there is an obvious bug here that I'm
surprised wasn't found by tests. It seems this code assumes that
Deque::pop returns null when the stack is empty. That said, you may
still end up with a MissingResourceException, unless the resource bundle
is found by other means.
I'll get a fix into jake for this. There are still one or two residual
issues in ResurceBundle to ponder, Masayoshi or Mandy may want to say
more about that. Mostly this is about whether .properties files in
packages that are exported-private should be located or not (the code
that you are looking assumes they will not be found).
-Alan