Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 681520 - dev-util/yuicompressor - Exception in thread "main" java.lang.reflect.InvocationTargetException
Summary: dev-util/yuicompressor - Exception in thread "main" java.lang.reflect.Invocat...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-23 11:47 UTC by Pavol Cupka
Modified: 2021-12-22 11:23 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (yuicompressor.emerge.info,5.07 KB, application/x-info)
2019-03-23 11:48 UTC, Pavol Cupka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pavol Cupka 2019-03-23 11:47:27 UTC
Steps to reproduce:
1. wget https://github.com/kalisjoshua/lbox/raw/master/lbox.js
2. yuicompressor lbox.js

Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.yahoo.platform.yui.compressor.Bootstrap.main(Bootstrap.java:21)
Caused by: java.lang.IllegalAccessError: tried to access class org.mozilla.javascript.IRFactory from class org.mozilla.javascript.Parser
        at org.mozilla.javascript.Parser.parse(Parser.java:347)
        at org.mozilla.javascript.Parser.parse(Parser.java:340)
        at com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse(JavaScriptCompressor.java:315)
        at com.yahoo.platform.yui.compressor.JavaScriptCompressor.<init>(JavaScriptCompressor.java:536)
        at com.yahoo.platform.yui.compressor.YUICompressor.main(YUICompressor.java:147)
        ... 5 more
Comment 1 Pavol Cupka 2019-03-23 11:48:50 UTC
Created attachment 570368 [details]
emerge --info
Comment 2 James Le Cuirot gentoo-dev 2021-09-04 14:21:35 UTC
Happened to me. I couldn't face more Java pain so I packaged dev-util/uglifyjs instead.
Comment 3 Larry the Git Cow gentoo-dev 2021-12-22 11:23:52 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0bd7a3fa8b5d47ed759044c77f9fc885797b258f

commit 0bd7a3fa8b5d47ed759044c77f9fc885797b258f
Author:     Jakov Smolić <jsmolic@gentoo.org>
AuthorDate: 2021-12-22 11:22:04 +0000
Commit:     Jakov Smolić <jsmolic@gentoo.org>
CommitDate: 2021-12-22 11:23:07 +0000

    dev-util/yuicompressor: treeclean
    
    Closes: https://bugs.gentoo.org/826470
    Closes: https://bugs.gentoo.org/681520
    Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>

 dev-util/yuicompressor/Manifest                    |  1 -
 dev-util/yuicompressor/metadata.xml                |  8 ----
 .../yuicompressor/yuicompressor-2.4.8-r2.ebuild    | 47 ----------------------
 profiles/package.mask                              |  7 ----
 4 files changed, 63 deletions(-)