8254274: Development to add 'lint' warning for @ValueBased classes#237
8254274: Development to add 'lint' warning for @ValueBased classes#237sadayapalam wants to merge 3 commits intoopenjdk:jep390from
Conversation
…f value based classes
|
👋 Welcome back sadayapalam! A progress list of the required criteria for merging this PR into |
Webrevs
|
|
A few questions for reviewers: (1) Do we want the lint mode to be on my default ? Presently it is off and has to be expressly opted into. |
|
Mailing list message from Remi Forax on valhalla-dev: ----- Mail original -----
yes ! Not enough people are using -Xlint:all in the wild. [...] R?mi |
src/jdk.compiler/share/classes/com/sun/tools/javac/code/Lint.java
Outdated
Show resolved
Hide resolved
src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java
Outdated
Show resolved
Hide resolved
src/jdk.compiler/share/classes/com/sun/tools/javac/resources/javac.properties
Outdated
Show resolved
Hide resolved
Given that it's already been established that there's an ad hoc set of on-by-default lint warnings, yeah, I think this one makes sense to put in that set. (Inventing a new concept of on-by-default lint warnings is something I'd be more hesitant about.) |
|
I have pushed additional changes to incorporate review comments: |
|
/integrate |
|
@sadayapalam This PR has not yet been marked as ready for integration. |
src/jdk.compiler/share/classes/com/sun/tools/javac/resources/javac.properties
Outdated
Show resolved
Hide resolved
…internal annotation
JimLaskey
left a comment
There was a problem hiding this comment.
Wondering if keyword SYNCHRONIZATION is too broad, suggest VALUE_ SYNCHRONIZATION. Would it make sense to have a test for a class.ref type value?
|
@sadayapalam This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
class.ref is a valhalla'ism - but the present work is targetting JDK16 as a precursor/preparation for Valhalla. (even though the integration first happens to jep390 branch of Valhalla repo as a temporary home). So the .ref syntax is really not available to test/need not be tested. As for the keyword, I am comfortable with it, but I will make it a point to solicit input at the next stage of review. (The accumulated cross component changes will get to a RFR when targetting jdk16) |
|
/integrate |
|
@sadayapalam Pushed as commit 2ac97b2. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
New javac lint mode (-Xlint:synchronize) to warn about client side as well JDK internal attempts to synchronize on instances of value based classes
Progress
Testing
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/valhalla pull/237/head:pull/237$ git checkout pull/237