Bug 1527 - JogampVersion: Accept accept first manifest w/ extension-name if no extension matches
Summary: JogampVersion: Accept accept first manifest w/ extension-name if no extension...
Status: RESOLVED FIXED
Alias: None
Product: Gluegen
Classification: JogAmp
Component: core (show other bugs)
Version: 2.6.0
Hardware: All all
: P4 normal
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2025-08-23 05:27 CEST by Sven Gothel
Modified: 2025-08-23 15:39 CEST (History)
0 users

See Also:
Type: FEATURE
SCM Refs:
gluegen 822459302bdd784cacc52d91c3f2f1a3e0d2903e gluegen 7f5b5dd136d1c68044bed72368f7299347217915 joal ce0522b6b14a8e2114d938238d30544b2b59d873 jogl d83e5c5b772753f086b3c6780662586a3395e6e1 jocl 9658b68b9b39ce2579e21db8cbf21deb46097640
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Gothel 2025-08-23 05:27:59 CEST
VersionUtil.getManifest() shall have one overload w/ and option to accept
first manifest w/ extension-name if no extension matches.

This is useful for custom packaging like `com.jogamp.opengl.demosfat`
(jogl's new fat android demo apk), where a custom extension is being used.

JogampVersion then utilizes this fallback, if the given Manifest is null
and the regular jogamp fat extension-name also fails (-> custom package).
Comment 1 Sven Gothel 2025-08-23 05:30:34 CEST
commit 822459302bdd784cacc52d91c3f2f1a3e0d2903e

fixed as described.

Further JogampVersion's getManifestInfo() only adds certain
attribute value if found, i.e. all SHA and Android tags.
Comment 2 Sven Gothel 2025-08-23 05:36:01 CEST
added:
joal ce0522b6b14a8e2114d938238d30544b2b59d873
jogl d83e5c5b772753f086b3c6780662586a3395e6e1
jocl 9658b68b9b39ce2579e21db8cbf21deb46097640
Comment 3 Sven Gothel 2025-08-23 15:39:44 CEST
commit 7f5b5dd136d1c68044bed72368f7299347217915

    Bug 1527: VersionUtil.getManifest: Exclude the parent-classloader resources to locate manifest
    
    Excluding the parent classloader resources reduces the risk of
    returning an arbitrary manifest in case of accept-first.
    
    Further it reduces I/O work to be performed,
    i.e. reading and parsing the parent's manifests.
    
    Using an Android fat jar, .e.g `com.jogamp.opengl.demos.androidfat`,
    this reduces the number of uniq manifest resources to one.
    
    Enhances commit 822459302bdd784cacc52d91c3f2f1a3e0d2903e .
    
    `jogamp.debug.VersionUtil` property may be used to enable logging.