-
Bug
-
Resolution: Fixed
-
P4
-
None
-
8.0 b126
-
b04
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8045115 | 8u25 | Alexander Zuev | P4 | Resolved | Fixed | b01 |
JDK-8033973 | 8u20 | Alexander Zuev | P4 | Resolved | Fixed | b03 |
JDK-8052554 | emb-8u26 | Alexander Zuev | P4 | Resolved | Fixed | b17 |
1. The Javap's output for small (zero) column number (specified with -XDtab option) looks like:
.............
Constant pool:
#1 = Methodref #19.#54// java/lang/Object."<init>":()V
#2 = String #55// PUBLIC FINAL CONSTANT
#3 = Fieldref #18.#56// StructureSampleClass.publicFinalConstant:Ljava/lang/String;
#4 = String #57// PROTECTED FINAL CONSTANT
#5 = Fieldref #18.#58// StructureSampleClass.protectedFinalConstant:Ljava/lang/String;
#6 = String #59// PRIVATE FINAL CONSTANT
.....................
At least one space symbol should be added (or it would be even better to check a minimum column position to align comments within a logical block of output.
2. The actual comment position is not equal to the specified value but shifted by the current indent value (so comments in the constant pool and the code section are placed on different positions).
.............
Constant pool:
#1 = Methodref #19.#54// java/lang/Object."<init>":()V
#2 = String #55// PUBLIC FINAL CONSTANT
#3 = Fieldref #18.#56// StructureSampleClass.publicFinalConstant:Ljava/lang/String;
#4 = String #57// PROTECTED FINAL CONSTANT
#5 = Fieldref #18.#58// StructureSampleClass.protectedFinalConstant:Ljava/lang/String;
#6 = String #59// PRIVATE FINAL CONSTANT
.....................
At least one space symbol should be added (or it would be even better to check a minimum column position to align comments within a logical block of output.
2. The actual comment position is not equal to the specified value but shifted by the current indent value (so comments in the constant pool and the code section are placed on different positions).
- backported by
-
JDK-8033973 Incorrect comment alignment
- Resolved
-
JDK-8045115 Incorrect comment alignment
- Resolved
-
JDK-8052554 Incorrect comment alignment
- Resolved