Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #34392
| From | Andreas Leitgeb <avl@logic.at> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: property reading within framework |
| Date | 2016-05-26 13:45 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <slrnnkdvmf.456.avl@login.logic.tuwien.ac.at> (permalink) |
| References | <45d9471f-7c05-41fb-b539-02a79a9ca27a@googlegroups.com> <slrnnkdugi.456.avl@login.logic.tuwien.ac.at> |
Andreas Leitgeb <avl@logic.at> wrote: > Philipp Kraus <philipp.kraus.flashpixx@gmail.com> wrote: >> a_class.getResourceAsStream( "configuration.properties" ) > > It depends on what classloader actually loaded the class on which > you are calling getResourceAsStream(...) > > Perhaps, when your framework is used by the other project, then somewhere > you "accidentally" load some class of the framework using the system > classloader. That class is then already known, and won't be reloaded > through the specific classloader. One way to find where the class really gets loaded is setting a breakpoint in a static initializer block of the class. (If there's none, create one.)
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
property reading within framework Philipp Kraus <philipp.kraus.flashpixx@gmail.com> - 2016-05-26 05:48 -0700
Re: property reading within framework Andreas Leitgeb <avl@logic.at> - 2016-05-26 13:25 +0000
Re: property reading within framework Andreas Leitgeb <avl@logic.at> - 2016-05-26 13:45 +0000
Re: property reading within framework Philipp Kraus <philipp.kraus.flashpixx@gmail.com> - 2016-05-26 12:46 -0700
csiph-web