diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 6e72f374ffd..5bd0450dac0 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2003-08-12 Graydon Hoare + + * java/awt/Color.java (getAlpha): + Prevent sign-extended alpha values. + 2003-08-12 Tom Tromey * gij.cc (main): Handle -? and -X. diff --git a/libjava/java/awt/Color.java b/libjava/java/awt/Color.java index 761b738e448..e6eb03e8f0a 100644 --- a/libjava/java/awt/Color.java +++ b/libjava/java/awt/Color.java @@ -496,7 +496,7 @@ public class Color implements Paint, Serializable public int getAlpha() { // Do not inline getRGB() to value, because of SystemColor. - return (getRGB() & ALPHA_MASK) >> 24; + return (getRGB() & ALPHA_MASK) >>> 24; } /**