Skip to content

Commit

Permalink
8286391: Address possibly lossy conversions in jdk.compiler
Browse files Browse the repository at this point in the history
Reviewed-by: mcimadamore
  • Loading branch information
asotona committed May 23, 2022
1 parent 88018c4 commit c906591
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -825,7 +825,7 @@ void writeInnerClasses() {
databuf.appendChar(poolWriter.innerClasses.size());
for (ClassSymbol inner : poolWriter.innerClasses) {
inner.markAbstractIfNeeded(types);
char flags = (char) adjustFlags(inner.flags_field);
int flags = adjustFlags(inner.flags_field);
if ((flags & INTERFACE) != 0) flags |= ABSTRACT; // Interfaces are always ABSTRACT
flags &= ~STRICTFP; //inner classes should not have the strictfp flag set.
if (dumpInnerClassModifiers) {
Expand Down
Expand Up @@ -2015,7 +2015,7 @@ void adjustAliveRanges(int oldCP, int delta) {
if (localVar != null) {
for (LocalVar.Range range: localVar.aliveRanges) {
if (range.closed() && range.start_pc + range.length >= oldCP) {
range.length += delta;
range.length += (char)delta;
}
}
}
Expand Down

1 comment on commit c906591

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.