procyon icon indicating copy to clipboard operation
procyon copied to clipboard

Cannot find symbol defineClass in TypeBuilder

Open cryptax opened this issue 4 years ago • 3 comments

How are we meant to compile the project? I tried ./gradlew build on a cloned repository, and it fails with an error on my host:

/tmp/procyon/Procyon.Reflection/src/main/java/com/strobel/reflection/emit/TypeBuilder.java:1234: error: cannot find symbol
            _generatedClass = (Class<T>) getUnsafeInstance().defineClass(
                                                            ^
  symbol:   method defineClass(String,byte[],int,int,ClassLoader,ProtectionDomain)
  location: class Unsafe
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error

I am using OpenJDK 12.0.2.

cryptax avatar Jan 04 '21 12:01 cryptax

Current code is only compatible with java 8 and have issues (failed tests, etc) with java >= 9.

delafer avatar Feb 02 '22 23:02 delafer

I’m actually working on this now. Biggest roadblock was TypeBuilder in Procyon.Reflection. Aside from some test issues, I seem to have everything compiling and running in both JDK8 and JDK17.

mstrobel avatar Feb 02 '22 23:02 mstrobel

good news, I've heard from many sources ( Stackoverflow, etc. )that Procyon is the best java decompiler ever made. It's nice to hear that the project, after a long pause will be further developed. So it's not dead. wonderful news! P.S. as to me: I have integrated in my github procyon fork latest changes from different branches and could compile with java 11, etc. and actual 7.xx gradle version, but is clear it's not ready for java >= 9 yet. So, we are waiting with pleasure for a new releases and thank you for a great job / work !

delafer avatar Feb 04 '22 10:02 delafer