[jira] [Updated] (COMPRESS-552) OSGI check broken - try to load class BundleEvent always fails
[ https://issues.apache.org/jira/browse/COMPRESS-552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stefan Bodewig updated COMPRESS-552: Attachment: commons-compress-1.21-SNAPSHOT.jar > OSGI check broken - try to load class BundleEvent always fails > -- > > Key: COMPRESS-552 > URL: https://issues.apache.org/jira/browse/COMPRESS-552 > Project: Commons Compress > Issue Type: Bug > Components: Compressors >Affects Versions: 1.20 >Reporter: Björn Michael >Priority: Major > Fix For: 1.21 > > Attachments: commons-compress-1.21-SNAPSHOT.jar > > > There is a check for running in OSGI env. in {{ZstdUtils}}, {{BrotliUtils}}, > {{LZMAUtils}} and {{XZUtils}} like this: > {code:java} > static { > cachedZstdAvailability = CachedAvailability.DONT_CACHE; > try { > Class.forName("org.osgi.framework.BundleEvent"); > } catch (final Exception ex) { // NOSONAR > setCacheZstdAvailablity(true); > } > } > {code} > Loading the class {{org.osgi.framework.BundleEvent}} always fails because > {{Import-Package}} directive for {{org.osgi.framework}} is missing in > _MANIFEST.MF_. Or it requires another more sophisticated approaches > ([https://stackoverflow.com/q/5879040/1061929]). > Tested with Eclipse 4.14 (org.eclipse.osgi_3.15.100.v20191114-1701.jar) -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (COMPRESS-552) OSGI check broken - try to load class BundleEvent always fails
[ https://issues.apache.org/jira/browse/COMPRESS-552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Björn Michael updated COMPRESS-552: --- Description: There is a check for running in OSGI env. in {{ZstdUtils}}, {{BrotliUtils}}, {{LZMAUtils}} and {{XZUtils}} like this: {code:java} static { cachedZstdAvailability = CachedAvailability.DONT_CACHE; try { Class.forName("org.osgi.framework.BundleEvent"); } catch (final Exception ex) { // NOSONAR setCacheZstdAvailablity(true); } } {code} Loading the class {{org.osgi.framework.BundleEvent}} always fails because {{Import-Package}} directive for {{org.osgi.framework}} is missing in _MANIFEST.MF_. Or it requires another more sophisticated approaches ([https://stackoverflow.com/q/5879040/1061929]). Tested with Eclipse 4.14 (org.eclipse.osgi_3.15.100.v20191114-1701.jar) was: There is a check for running in OSGI env. in {{ZstdUtils}}, {{BrotliUtils}}, {{LZMAUtils}} and {{XZUtils}} like this: {code:java} static { cachedZstdAvailability = CachedAvailability.DONT_CACHE; try { Class.forName("org.osgi.framework.BundleEvent"); } catch (final Exception ex) { // NOSONAR setCacheZstdAvailablity(true); } } {code} Loading the class {{org.osgi.framework.BundleEvent}} always fails because {{Import-Package}} directive for {{org.osgi.framework}} is missing in _MANIFEST.MF_. Or it requires another more sophisticated approach (https://stackoverflow.com/q/5879040/1061929). Tested with Eclipse 4.14 (org.eclipse.osgi_3.15.100.v20191114-1701.jar) > OSGI check broken - try to load class BundleEvent always fails > -- > > Key: COMPRESS-552 > URL: https://issues.apache.org/jira/browse/COMPRESS-552 > Project: Commons Compress > Issue Type: Bug > Components: Compressors >Affects Versions: 1.20 >Reporter: Björn Michael >Priority: Major > > There is a check for running in OSGI env. in {{ZstdUtils}}, {{BrotliUtils}}, > {{LZMAUtils}} and {{XZUtils}} like this: > {code:java} > static { > cachedZstdAvailability = CachedAvailability.DONT_CACHE; > try { > Class.forName("org.osgi.framework.BundleEvent"); > } catch (final Exception ex) { // NOSONAR > setCacheZstdAvailablity(true); > } > } > {code} > Loading the class {{org.osgi.framework.BundleEvent}} always fails because > {{Import-Package}} directive for {{org.osgi.framework}} is missing in > _MANIFEST.MF_. Or it requires another more sophisticated approaches > ([https://stackoverflow.com/q/5879040/1061929]). > Tested with Eclipse 4.14 (org.eclipse.osgi_3.15.100.v20191114-1701.jar) -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (COMPRESS-552) OSGI check broken - try to load class BundleEvent always fails
[ https://issues.apache.org/jira/browse/COMPRESS-552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Björn Michael updated COMPRESS-552: --- Description: There is a check for running in OSGI env. in {{ZstdUtils}}, {{BrotliUtils}}, {{LZMAUtils}} and {{XZUtils}} like this: {code:java} static { cachedZstdAvailability = CachedAvailability.DONT_CACHE; try { Class.forName("org.osgi.framework.BundleEvent"); } catch (final Exception ex) { // NOSONAR setCacheZstdAvailablity(true); } } {code} Loading the class {{org.osgi.framework.BundleEvent}} always fails because {{Import-Package}} directive for {{org.osgi.framework}} is missing in _MANIFEST.MF_. Or it requires another more sophisticated approach (https://stackoverflow.com/q/5879040/1061929). Tested with Eclipse 4.14 (org.eclipse.osgi_3.15.100.v20191114-1701.jar) was: There is a check for running in OSGI env. in {{ZstdUtils}}, {{BrotliUtils}}, {{LZMAUtils}} and {{XZUtils}} like this: {code:java} static { cachedZstdAvailability = CachedAvailability.DONT_CACHE; try { Class.forName("org.osgi.framework.BundleEvent"); } catch (final Exception ex) { // NOSONAR setCacheZstdAvailablity(true); } } {code} Loading the class {{org.osgi.framework.BundleEvent}} always fails because {{Import-Package}} directive for {{org.osgi.framework}} is missing in _MANIFEST.MF_. Or it requires another more sophisticated approach. Tested with Eclipse 4.14 (org.eclipse.osgi_3.15.100.v20191114-1701.jar) > OSGI check broken - try to load class BundleEvent always fails > -- > > Key: COMPRESS-552 > URL: https://issues.apache.org/jira/browse/COMPRESS-552 > Project: Commons Compress > Issue Type: Bug > Components: Compressors >Affects Versions: 1.20 >Reporter: Björn Michael >Priority: Major > > There is a check for running in OSGI env. in {{ZstdUtils}}, {{BrotliUtils}}, > {{LZMAUtils}} and {{XZUtils}} like this: > {code:java} > static { > cachedZstdAvailability = CachedAvailability.DONT_CACHE; > try { > Class.forName("org.osgi.framework.BundleEvent"); > } catch (final Exception ex) { // NOSONAR > setCacheZstdAvailablity(true); > } > } > {code} > Loading the class {{org.osgi.framework.BundleEvent}} always fails because > {{Import-Package}} directive for {{org.osgi.framework}} is missing in > _MANIFEST.MF_. Or it requires another more sophisticated approach > (https://stackoverflow.com/q/5879040/1061929). > Tested with Eclipse 4.14 (org.eclipse.osgi_3.15.100.v20191114-1701.jar) -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Updated] (COMPRESS-552) OSGI check broken - try to load class BundleEvent always fails
[ https://issues.apache.org/jira/browse/COMPRESS-552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Björn Michael updated COMPRESS-552: --- Description: There is a check for running in OSGI env. in {{ZstdUtils}}, {{BrotliUtils}}, {{LZMAUtils}} and {{XZUtils}} like this: {code:java} static { cachedZstdAvailability = CachedAvailability.DONT_CACHE; try { Class.forName("org.osgi.framework.BundleEvent"); } catch (final Exception ex) { // NOSONAR setCacheZstdAvailablity(true); } } {code} Loading the class {{org.osgi.framework.BundleEvent}} always fails because {{Import-Package}} directive for {{org.osgi.framework}} is missing in _MANIFEST.MF_. Or it requires another more sophisticated approach. Tested with Eclipse 4.14 (org.eclipse.osgi_3.15.100.v20191114-1701.jar) was: There is a check for running in OSGI env. in {{ZstdUtils}}, {{BrotliUtils}}, {{LZMAUtils}} and {{XZUtils}} like this: {code:java} static { cachedZstdAvailability = CachedAvailability.DONT_CACHE; try { Class.forName("org.osgi.framework.BundleEvent"); } catch (final Exception ex) { // NOSONAR setCacheZstdAvailablity(true); } } {code} Loading the class {{org.osgi.framework.BundleEvent}} always fails because {{Import-Package}} directive for {{org.osgi.framework}} is missing in _MANIFEST.MF_. Tested with Eclipse 4.14 (org.eclipse.osgi_3.15.100.v20191114-1701.jar) > OSGI check broken - try to load class BundleEvent always fails > -- > > Key: COMPRESS-552 > URL: https://issues.apache.org/jira/browse/COMPRESS-552 > Project: Commons Compress > Issue Type: Bug > Components: Compressors >Affects Versions: 1.20 >Reporter: Björn Michael >Priority: Major > > There is a check for running in OSGI env. in {{ZstdUtils}}, {{BrotliUtils}}, > {{LZMAUtils}} and {{XZUtils}} like this: > {code:java} > static { > cachedZstdAvailability = CachedAvailability.DONT_CACHE; > try { > Class.forName("org.osgi.framework.BundleEvent"); > } catch (final Exception ex) { // NOSONAR > setCacheZstdAvailablity(true); > } > } > {code} > Loading the class {{org.osgi.framework.BundleEvent}} always fails because > {{Import-Package}} directive for {{org.osgi.framework}} is missing in > _MANIFEST.MF_. Or it requires another more sophisticated approach. > Tested with Eclipse 4.14 (org.eclipse.osgi_3.15.100.v20191114-1701.jar) -- This message was sent by Atlassian Jira (v8.3.4#803005)