Just tried updating from 6.0.3 to 6.1.0beta2 ready for Java 11 but am hitting the following issue with both Java 10 and 11 (Java 10 was running fine with 6.0.3):
Thanks for your report. This seems to be the same problem as the recently reported bug #745. Do you also have a statically initialized array of floats or doubles, where one of the elements is an unusual value like NaN, +Inf, or -Inf? Otherwise, can you share a small sample that reproduces the problem?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks Eric. I only found one instance of this (using NaN) in the main code (loads in unit tests which should be excluded anyway). The codebase is nearly 1 million lines so will struggle to pin down the exact issue. As the bug looks like a compara[tor|ble] regression I was hoping it would be easy for you to find... :-)
I will wait to test the next build after #745 is resolved as there's a good chance it's the same issue.
Cheers
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've tried to run it with Java 11, and it does not work. I get the following error:
ProGuard, version 6.1.1
Reading program jar [/Users/firetiti/NetBeans/FiReTiTiLiB/dist/FiReTiTiLiB.jar]
Reading program jar [/Users/firetiti/NetBeans/FiReTiTiLiB/dist/lib/FiReTiTiCoreJava.jar]
Reading library jar [/Library/Java/JavaVirtualMachines/jdk-11.0.2.jdk/Contents/Home/lib/rt.jar]
Error: Can't read [/Library/Java/JavaVirtualMachines/jdk-11.0.2.jdk/Contents/Home/lib/rt.jar] (No such file or directory: /Library/Java/JavaVirtualMachines/jdk-11.0.2.jdk/Contents/Home/lib/rt.jar)
Any idea how to fix it?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Indeed, this file does not exist anymore on Java 11. It seems that it was removed on Java 9.
I work on a macos with Java 11.
As the file does not exists anymore, why is proguard looking for it?
Last edit: FiReTiTi 2019-06-27
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I use ProGuard 6.1.1 on Java 11.0.2 on macosX 10.13.6
I call this command: java -jar ./lib/proguard.jar @MyApp.pro
It seems that the call to rt.jar comes from my config file that comes from a old proguard version, so I commented the line.
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok, sounds challenging? do you think you'll be able to turn this around quickly? When do you think you'll have this released.
Java 11 was out this week, I tried compiling my project with it (upgrading from Java 10) and I think proguard is the only thing not working.
i think this product is great by the way.
+1
+1 for Java 11 support. I'm also a big fan of ProGuard so keen to have it working for Java 11. Any feeling for when it will be ready?
Last edit: Mark Baird 2018-11-15
Hi, Is there an update on Java 11 support?
+1, is there any schedule for this milestone
+1, is there any status update?
+1, for status update
ProGuard 6.1.0 beta2 (available now) supports Java 10, 11 and 12.
Thanks, Eric, you're the best!
Perfect, runs smoothly. Thanks, Eric.
Awesome, Eric. Looking forward to trying it out!
Just tried updating from 6.0.3 to 6.1.0beta2 ready for Java 11 but am hitting the following issue with both Java 10 and 11 (Java 10 was running fine with 6.0.3):
Thanks for your report. This seems to be the same problem as the recently reported bug #745. Do you also have a statically initialized array of floats or doubles, where one of the elements is an unusual value like NaN, +Inf, or -Inf? Otherwise, can you share a small sample that reproduces the problem?
Thanks Eric. I only found one instance of this (using NaN) in the main code (loads in unit tests which should be excluded anyway). The codebase is nearly 1 million lines so will struggle to pin down the exact issue. As the bug looks like a compara[tor|ble] regression I was hoping it would be easy for you to find... :-)
I will wait to test the next build after #745 is resolved as there's a good chance it's the same issue.
Cheers
Hi Eric. Do you have an approximate timeline for 6.1beta3 and 6.1 GA?
Thanks!
I've just tried 6.1.0 on our project. It no longer crashes on Java 10 and also runs fine when we build with OpenJDK 11.0.3
Thanks!
I've tried to run it with Java 11, and it does not work. I get the following error:
Any idea how to fix it?
What's your config? You know that JDK 11 does not have a /Contents/Home/lib/rt.jar, right?
Indeed, this file does not exist anymore on Java 11. It seems that it was removed on Java 9.
I work on a macos with Java 11.
As the file does not exists anymore, why is proguard looking for it?
Last edit: FiReTiTi 2019-06-27
I don't think you've discovered a bug.
I.e., how are you calling ProGuard?
I use ProGuard 6.1.1 on Java 11.0.2 on macosX 10.13.6
I call this command: java -jar ./lib/proguard.jar @MyApp.pro
It seems that the call to rt.jar comes from my config file that comes from a old proguard version, so I commented the line.
Thanks.
I still have too many warnings for basic libraries, so I opened a post on StackOverflow: https://stackoverflow.com/questions/56920082/proguard-does-not-find-basic-packages-and-super-class