New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correct occurences in for comprehensions containing withFilter
#3109
Conversation
@@ -1487,8 +1487,7 @@ com/javacp/Test#staticField. => private[javacp] static field staticField: Int | |||
com/javacp/Test#staticMethod(). => private[javacp] static method staticMethod(): Unit | |||
javacp => com/javacp/ | |||
Unit => scala/Unit# | |||
com/javacp/Test#strictfpMethod(). => @strictfp private[javacp] method strictfpMethod(): Unit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why change this? It seems to be failing now. You can use the save-expect
command to update the expected file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the result of save-expect
(even if invoked on main branch) with jvm 17+
Compilation also gives a warning:
[warn] /.../scalameta/semanticdb/integration/src/main/java/com/javacp/Test.java:69:1: [strictfp] as of release 17, all floating-point expression
s are evaluated strictly and 'strictfp' is not required
[warn] strictfp void strictfpMethod() {}
[warn] ^1 warning
I could switch to an older jvm version to leave this unchanged, should I?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe the issue is that we run the tests with 8/11 then 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep
Another option is to remove this strictfpMethod
from tests 😃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can for sure change that, I think this was added as a test for annotations if I am not mistaken
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure about annotations, it's defined here:
strictfp void strictfpMethod() {}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ach, that might be something different then, sorry I didn't look exactly. The best case here is to run sbt with JDK 11, if it's a problem for you I can do it later on.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a problem at all
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
b16e8b1
to
274cd32
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Fixes scalameta/metals#4548