Hi, Maybe a bit ot of topic but did you check with asm (using classreader for ex) if it is readable for it? Javap in verbose mode is hard to read humanly (and not verbosel does not mean much) so an issue can still be hidden.
Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <https://www.packtpub.com/application-development/java-ee-8-high-performance> Le jeu. 3 févr. 2022 à 01:42, Stefan Reich <[email protected]> a écrit : > I'm mainly curious how it's possible that everything looks completely > normal in javap (checked a dozen times), but the class verifier complains > anyway? Something has to be different. Is there a way to dig deeper into a > class file? > > Greetings > > On Wed, 2 Feb 2022 at 23:14, Stefan Reich < > [email protected]> wrote: > > > Hmm, no change with latest version. > > > > I did "git clone https://github.com/apache/commons-bcel.git" and "mvn > > package". > > > > stefan@lenovo-ThinkPad-X220:~/dev/classreftest$ javac -cp > > bcel-6.6.0-SNAPSHOT.jar MakeBadClassFile.java > > stefan@lenovo-ThinkPad-X220:~/dev/classreftest$ java -cp > > bcel-6.6.0-SNAPSHOT.jar:. MakeBadClassFile > > Now please try: java BadClassFile > > stefan@lenovo-ThinkPad-X220:~/dev/classreftest$ java BadClassFile > > Error: Unable to initialize main class BadClassFile > > Caused by: java.lang.VerifyError: (class: BadClassFile, method: main > > signature: ([Ljava/lang/String;)V) Illegal type in constant pool > > stefan@lenovo-ThinkPad-X220:~/dev/classreftest$ > > > > On Wed, 2 Feb 2022 at 22:59, Gary Gregory <[email protected]> > wrote: > > > >> You should try the latest from git master. > >> > >> Gary > >> > >> On Wed, Feb 2, 2022, 15:41 Stefan Reich > >> <[email protected]> wrote: > >> > >> > Hi again, > >> > > >> > actual problem this time... > >> > > >> > I think I am doing everything right... Decompilation in javap -v looks > >> > just like it should. But I get a VerifyError... I'm using JDK 17. Full > >> > program attached. Please advice, thank you :) > >> > > >> > # javac -cp bcel-6.5.0.jar MakeBadClassFile.java > >> > # java -cp bcel-6.5.0.jar:. MakeBadClassFile > >> > # java BadClassFile > >> > Error: Unable to initialize main class BadClassFile > >> > Caused by: java.lang.VerifyError: (class: BadClassFile, method: main > >> > signature: ([Ljava/lang/String;)V) Illegal type in constant pool > >> > > >> > > >> > --------------------------------------------------------------------- > >> > To unsubscribe, e-mail: [email protected] > >> > For additional commands, e-mail: [email protected] > >> > > > > >
