Skip to content

ClassFormatError when processors passed to Reflect.compile() produce new source files #81

@lukaseder

Description

@lukaseder

When a processor passed to Reflect.compile() attempts to produce new source files, we get the following error:

Exception in thread "main" java.lang.ClassFormatError: Incompatible magic value 1885430635 in class file test/Data
	at java.base/java.lang.ClassLoader.defineClass1(Native Method)
	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016)
	at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:877)
	at org.joor.Compile$ByteArrayClassLoader.findClass(Compile.java:169)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
	at org.joor.Compile.lambda$compile$3(Compile.java:142)
	at org.joor.Compile$ClassFileManager.loadAndReturnMainClass(Compile.java:232)
	at org.joor.Compile.compile(Compile.java:141)
	at org.joor.Reflect.compile(Reflect.java:102)
	at org.jooq.annotation.processor.Test.main(Test.java:9)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions