Skip to main content



      Home
Home » Language IDEs » AspectJ » Inconsistent bytecode generated by aspectjweaver 1.9.22
Inconsistent bytecode generated by aspectjweaver 1.9.22 [message #1872716] Fri, 15 November 2024 12:44 Go to next message
Eclipse UserFriend
Maven 3.9.1 running with IBM Java 17.0.11.

The Maven project uses two javaagents:
- jacoco (0.8.12) and
- aspectjweaver 1.9.22

During the mvn testing phase, the error below is being generated:

java.lang.ClassFormatError: JVMCFRE153 Constant pool entry not valid in class files with versions < 55.0; class=org/apache/parquet/hadoop/CodecFactory$HeapBytesCompressor, offset=3202


This is due to the fact that the bytecode generated by aspectjweaver is inconsistent: although the class version is 52, the constant pool contains the Dynamic construct.

Attached (see RelevantFiles.zip)
-- the class files before and after being processed by aspectjweaver .
-- the output of running javap on those two class files

This might as well be some sort of jacoco - aspectjweaver incongruity.

Re: Inconsistent bytecode generated by aspectjweaver 1.9.22 [message #1872782 is a reply to message #1872716] Tue, 19 November 2024 07:29 Go to previous message
Eclipse UserFriend
Found a workaround that did the trick for me -- just turned off inlining:

<weaver options="-XnoInline  .....etc......">

Previous Topic:Sharing aspecs between src and test module?
Goto Forum:
  


Current Time: Thu May 22 19:40:35 EDT 2025

Powered by FUDForum. Page generated in 0.03407 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top