Menu

#138 support for JDK8?

v5.0
closed
None
6
2014-08-21
2013-02-07
No

When do you plan to support JDK8? Is there any way to use proguard with JDK8 at present?

Discussion

  • Eric Lafortune

    Eric Lafortune - 2013-02-08

    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.

     
    • software4java

      software4java - 2013-02-09

      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.

       
  • Eric Lafortune

    Eric Lafortune - 2013-02-08
    • assigned_to: Eric Lafortune
    • priority: 5 --> 6
     
  • Nathan Reynolds

    Nathan Reynolds - 2013-10-21

    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.

     
    • Eric Lafortune

      Eric Lafortune - 2013-10-21

      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.

      Eric

       
  • Alexander Kriegisch

    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

    <groupId>com.github.wvengen</groupId>
    <artifactId>proguard-maven-plugin</artifactId>
    <version>2.0.6</version>
    

    in a way to at least tolerate Java 8 class files until official Java 8 support has been added to ProGuard?

     
  • Quanah Gibson-Mount

    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.

    Thanks!

     
    • Eric Lafortune

      Eric Lafortune - 2014-08-20

      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.

       
      • Quanah Gibson-Mount

        Awesome, thank you! The way 144 was closed, it wasn't clear to me it was fixed in 5.0, just "some sunny day". :)

         
  • Eric Lafortune

    Eric Lafortune - 2014-08-20
    • status: open --> closed
     
  • Alexander Kriegisch

    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.

     

    Related

    Bugs: #506


    Last edit: Alexander Kriegisch 2014-08-21
  • Eric Lafortune

    Eric Lafortune - 2014-08-21
    • Group: Some sunny day --> v5.0
     

Log in to post a comment.