PATCH: Re: Fwd: Typo in online GCJ docs.

Thomas Zander zander@kde.org
Thu Apr 21 07:28:00 GMT 2005


Hi Bryce,

thanks for picking this up so quickly!
Just one thing; you missed one fix in the example I made; the constructor is 
still called 'Integer' while it should be 'Int'.

> >> On the same page there is a Java example that will not compile, I
> >> found and
> >> fixed 3 bugs; Please replace with:
> >>      public class Int
> >>      {
> >>        public int i;
> >>        public Int(int i) { this.i = i; }
> >>        public static Int zero = new Int(0);
> >>      }
...
> @@ -1560,7 +1560,7 @@
>  @{
>    public int i;
>    public Integer (int i) @{ this.i = i; @}
> -  public static zero = new Integer(0);
> +  public static Int zero = new Int(0);
>  @}
>  @end example

-- 
Thomas Zander
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java/attachments/20050421/3365aa51/attachment.sig>


More information about the Java mailing list