Skip to content
Permalink
Browse files
8286399: Address possibly lossy conversions in JDK Build Tools
Reviewed-by: rriggs, joehw
  • Loading branch information
naotoj committed May 16, 2022
1 parent b884db8 commit c044cb8346bb8fbba46db1debe921cf96885ada0
Showing 2 changed files with 5 additions and 5 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2010, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -119,7 +119,7 @@ static void genClass(String pkg, String args[]) throws Exception
indexC2B[e.cp>>8] = 1;
} else {
indexC2BSupp[(e.cp&0xffff)>>8] = 1;
suppFlag[e.bs] |= (1 << plane);
suppFlag[e.bs] |= (byte) (1 << plane);
}
}

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -1273,7 +1273,7 @@ else if (c == '/') {
for (int i = 0; i < decisionPointList.size(); i++) {
int rowNum = decisionPointList.elementAt(i).intValue();
state = tempStateTable.elementAt(rowNum);
state[numCategories] |= END_STATE_FLAG;
state[numCategories] |= (short) END_STATE_FLAG;
if (sawEarlyBreak) {
state[numCategories] |= LOOKAHEAD_STATE_FLAG;
}
@@ -1580,7 +1580,7 @@ private void backfillLoopingStates() {
}

// clear out the backfill part of the flag word
state[numCategories] &= ALL_FLAGS;
state[numCategories] &= (short) ALL_FLAGS;

// then fill all zero cells in the current state with values
// from the corresponding cells of the fromState

1 comment on commit c044cb8

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on c044cb8 May 16, 2022

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.