Summary: | Clarify IOUtil.getResource(..) for better efficiency, i.e. allow caller to skip relative futile lookup | ||
---|---|---|---|
Product: | [JogAmp] Newt | Reporter: | Xerxes Rånby <xerxes> |
Component: | core | Assignee: | Sven Gothel <sgothel> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | ||
Priority: | --- | ||
Version: | 2.3.2 | ||
Hardware: | pc_all | ||
OS: | linux | ||
Type: | FEATURE | SCM Refs: |
gluegen d78bb1be0a6290cb94918b21865a023c01825048
gluegen 48cef027ec727d3e03b78f577208d1ce10b705d1
jogl 731c473740e3e7ccd26ecda7ea0200382795c3a6
|
Workaround: | --- | ||
Bug Depends on: | |||
Bug Blocks: | 1238 | ||
Attachments: | test_dbg.log.tar.gz |
Description
Xerxes Rånby
2015-09-29 10:43:57 CEST
IOUtil.getResource(..) and in this reported case IOUtil.ClassResources, needs more clarity. ClassLoader shall be passed explicitly next to the optional relative context Class instance. This allows better efficiency, i.e. caller can pass ClassLoader but skip a possible relative lookup, if not existing. commit d78bb1be0a6290cb94918b21865a023c01825048 Fixed as described in comment 1 gluegen 48cef027ec727d3e03b78f577208d1ce10b705d1 Minor Cleanup: AssetURLContext and IOUtil.getResource(..) DEBUG Messages jogl 731c473740e3e7ccd26ecda7ea0200382795c3a6 Adopt GlueGen's clarification of IOUtil.getResource(..), commit d78bb1be0a6290cb94918b21865a023c01825048 - Skip relative lookup for IOUtil.ClassResources using 'asset' only (from JAR file) - Tested w/ jar file and build-dir, see scripts/tests.sh 'USE_BUILDDIR' |