When do you plan to support JDK8? Is there any way to use proguard with JDK8 at present?
I'm aiming to support JDK8 when it becomes generally available, because at this time, new features may still change.
ProGuard probably works on class files that only use older features if you change or disable ClassUtil#checkVersionNumbers.
JDK8 is feature complete, please take a look here: http://openjdk.java.net/projects/jdk8/
For JavaFX8 applications it's neccessary to use JDK8. So it would be awesome to use pro guard with JDK8 now.
JDK 8 has early access builds available. (See http://openjdk.java.net/projects/jdk8/). According to the schedule, JDK 8 has all tests run, the API/Interface is frozen and will enter "Zero Bug Bounce" on 10/24/2013. So, if the class file format has to change it will only be due to a bug and probably a significant bug at that. (See http://openjdk.java.net/projects/jdk8/milestones). It should be safe to add support to ProGuard now and if there is a change then it shouldn't take much time for ProGuard to handle it.
Furthermore, Eclipse IDE has early access builds available which support JDK 8. ProGuard's non-support for JDK 8 blocks me from using JDK 8 or Eclipse IDE. Please reconsider adding support for JDK 8 today instead of in 5 months.
Thanks for your note. I'm very busy at the moment, so realistically I won't be able to complete this in the short term, sorry. I'm keeping an eye on the developments though.
Java 8 has been made officially available yesterday and I am currentlyx testing our Maven build against Java 8. It basically works fine, but ProGuard says:
[proguard] Caused by: java.lang.UnsupportedOperationException: Unsupported class version number [52.0] (maximum 51.0, Java 1.7)
[proguard] at proguard.classfile.util.ClassUtil.checkVersionNumbers(ClassUtil.java:140)
[proguard] at proguard.classfile.io.ProgramClassReader.visitProgramClass(ProgramClassReader.java:88)
[proguard] at proguard.classfile.ProgramClass.accept(ProgramClass.java:346)
[proguard] at proguard.io.ClassReader.read(ClassReader.java:91)
[proguard] ... 13 more
Is there a way to configure this Maven plugin
in a way to at least tolerate Java 8 class files until official Java 8 support has been added to ProGuard?
Is there an ETA on when JDK8 support will be in? I notice the other JDK8 bug (144) was closed without comment, despite the overwhelming requests for valid JDK8 support.
After a long time in beta, I've finally released ProGuard 5.0 and closed all solved issues yesterday (missing this one!). This version supports Java 8. You can find it in the downloads section and on Maven Central. Any feedback and bug reports are still welcome. I'll post an announcement in the discussion forum.
Awesome, thank you! The way 144 was closed, it wasn't clear to me it was fixed in 5.0, just "some sunny day". :)
First of all, thanks for the new version.
I agree with Quanah. My closed bug [#506] also has the wrong milestone. Maybe you forgot to set it when mass-editing.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.