Conversation
2e299a1 to
4b29f6b
Compare
712f8ed to
1ba2d7a
Compare
| import com.sun.tools.javac.code.Source; | ||
| import net.bytebuddy.asm.Advice; | ||
|
|
||
| public class PreviewFeatureCheckOverride { |
There was a problem hiding this comment.
Let's follow the convention of ${ClassBeingVisited}Advice:
| public class PreviewFeatureCheckOverride { | |
| public class PreviewAdvice { |
|
Hey @astubbs, Since the logging one may take longer, could you please rebase this PR on top of master? Thanks! |
|
Will do @bsideup , what do you think otherwise? |
1ba2d7a to
f149620
Compare
I don’t understand why, but must be something to do with the way ByteBuddy works, the Advice class seems to be required to be a normal class, not an inner static class.
4a6d826 to
5bec5e6
Compare
…or is (very) disabled. Passes locally, but fails on github CI. Local: ↪ ./gradlew -version ------------------------------------------------------------ Gradle 6.2.1 ------------------------------------------------------------ Build time: 2020-02-24 20:24:10 UTC Revision: aacbcb7e587faa6a8e7851751a76183b6187b164 Kotlin: 1.3.61 Groovy: 2.5.8 Ant: Apache Ant(TM) version 1.10.7 compiled on September 1 2019 JVM: 13.0.2 (Oracle Corporation 13.0.2+8) OS: Mac OS X 10.15.6 x86_64
78911e4 to
57a42dc
Compare
|
Wow ok have been pulling my hair out about this. Turns out the difference of fail vs not failing (it passes locally no matter what I do, and fails on CI), was Gradle wrapper vs not. I /had/ java 14 installed on my machine and removing that made no difference. I had a quick look through the release notes between 6.2 and 6.6 and couldn't find anything obvious... |
… gradlew causing the discrepancy
60845a6 to
03da78c
Compare
|
Ok, I'm not actually sure this is needed to access preview features. I assumed from the existence of the issue, that it didn't so I dove straight in. Now I'm not so sure. I can't get it to test reliably... |
|
Hi @astubbs, Please see my answer here: |
|
Haha ok so this definitely isn't needed - let's close it :) Was a fun learning experience though! |
Fixes #9 --enable-preview through Jabel?
First cut, works for me so far...
Branched from logging PR, can rebase on master if you like instead: #37