-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8345145: Display javap LineNumberTable and LocalVariableTable iff disassembled code output with -c or -v
#22434
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
Conversation
|
👋 Welcome back jonath4ndev! A progress list of the required criteria for merging this PR into |
|
@jonath4ndev 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 5 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@mcimadamore, @liach) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
-c or -v
|
@jonath4ndev The following labels will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command. |
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.
Nice work!
|
Thanks for the review and previous input! /integrate |
|
@jonath4ndev |
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.
Looks good. However, note that per our guide https://openjdk.org/guide, we usually integrate after about 24 hours to allow sufficient time for all reviewers. So I may sponsor later.
Oh my bad. Thanks for the heads-up! |
|
I made a change to I guess leaving out my change in english might be best, to avoid inconsitency between translations? Likely this extra info doesn't provide much value, as one gets the same insight in the warning. Note: It seems this approach is taken for other cases of incompatible arguments. For example in the case |
|
While I am not sure, I don't think you should worry about inconsistencies between translations. Looking at JDK-8322041 and JDK-8333827, it seems that the translations are updated by certain people after RDP1 and then are backported. At least, it seems out of scope for this change. |
|
It's been over 24 hours. Thanks for everyone's review and patience! /sponsor |
|
Going to push as commit ed03f0d.
Your commit was automatically rebased without conflicts. |
|
@liach @jonath4ndev Pushed as commit ed03f0d. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
This PR includes a suggested change in behaviour of
javap -lwithout-vor-c.Previously it was possible to print
LineNumberTableandLocalVariableTablewithout disassembled code output. This didn't make much sense, as there is no context for this output. This PR proposes to output a warning for this case, as well as not print theLineNumberTableandLocalVariableTableattrubutes. They are nested attributes of theCodeAttributeand thus should only be printed if theCodeAttributeis also printed.Small changes were also made to existing tests, which seem unproblematic to adjust.
Before: `javac -l EmptyLoop`
After: `javac -l EmptyLoop`
Stems from discussion in: #22359
Progress
Issue
-cor-v(Enhancement - P5)Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/22434/head:pull/22434$ git checkout pull/22434Update a local copy of the PR:
$ git checkout pull/22434$ git pull https://git.openjdk.org/jdk.git pull/22434/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 22434View PR using the GUI difftool:
$ git pr show -t 22434Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/22434.diff
Using Webrev
Link to Webrev Comment