Yesterday I added a couple of JDK1.5 firePropertyChange methods to
java.awt.Component. I made them protected (copy+paste) but they should
be public according to the specs. Why this is so is beyond me though...
fixed by the attached patch.

2006-02-06  Roman Kennke  <[EMAIL PROTECTED]>

        * java/awt/Component.java
        (firePropertyChange(String,byte,byte)): Made method public.
        (firePropertyChange(String,char,char)): Made method public.
        (firePropertyChange(String,short,short)): Made method public.
        (firePropertyChange(String,long,long)): Made method public.
        (firePropertyChange(String,float,float)): Made method public.
        (firePropertyChange(String,double,double)): Made method public.

/Roman
Index: java/awt/Component.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/Component.java,v
retrieving revision 1.94
diff -u -r1.94 Component.java
--- java/awt/Component.java	6 Feb 2006 13:48:03 -0000	1.94
+++ java/awt/Component.java	7 Feb 2006 11:33:56 -0000
@@ -4493,7 +4493,7 @@
    *
    * @since 1.5
    */
-  protected void firePropertyChange(String propertyName, byte oldValue,
+  public void firePropertyChange(String propertyName, byte oldValue,
                                     byte newValue)
   {
     if (changeSupport != null)
@@ -4510,7 +4510,7 @@
    *
    * @since 1.5
    */
-  protected void firePropertyChange(String propertyName, char oldValue,
+  public void firePropertyChange(String propertyName, char oldValue,
                                     char newValue)
   {
     if (changeSupport != null)
@@ -4527,7 +4527,7 @@
    *
    * @since 1.5
    */
-  protected void firePropertyChange(String propertyName, short oldValue,
+  public void firePropertyChange(String propertyName, short oldValue,
                                     short newValue)
   {
     if (changeSupport != null)
@@ -4544,7 +4544,7 @@
    *
    * @since 1.5
    */
-  protected void firePropertyChange(String propertyName, long oldValue,
+  public void firePropertyChange(String propertyName, long oldValue,
                                     long newValue)
   {
     if (changeSupport != null)
@@ -4561,7 +4561,7 @@
    *
    * @since 1.5
    */
-  protected void firePropertyChange(String propertyName, float oldValue,
+  public void firePropertyChange(String propertyName, float oldValue,
                                     float newValue)
   {
     if (changeSupport != null)
@@ -4579,8 +4579,8 @@
    *
    * @since 1.5
    */
-  protected void firePropertyChange(String propertyName, double oldValue,
-                                    double newValue)
+  public void firePropertyChange(String propertyName, double oldValue,
+                                 double newValue)
   {
     if (changeSupport != null)
       changeSupport.firePropertyChange(propertyName, new Double(oldValue),

Reply via email to