[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/34840] Mismatch between Sun's Appendable and classpath's
From: |
gnu_andrew at member dot fsf dot org |
Subject: |
[Bug classpath/34840] Mismatch between Sun's Appendable and classpath's Appendable |
Date: |
17 Feb 2008 01:39:25 -0000 |
------- Comment #1 from gnu_andrew at member dot fsf dot org 2008-02-17 01:39
-------
The given example doesn't compile with either IcedTea or ecj+classpath:
PR34840.java:7: reference to append is ambiguous, both method
append(java.lang.CharSequence,int,int) in java.lang.AbstractStringBuilder and
method append(char[],int,int) in java.lang.AbstractStringBuilder match
sb.append(null,2,4);
^
PR34840.java:9: reference to append is ambiguous, both method
append(java.lang.CharSequence,int,int) in java.lang.AbstractStringBuilder and
method append(char[],int,int) in java.lang.AbstractStringBuilder match
sb.append(null,2,3);
1. ERROR in PR34840.java
(at line 7)
sb.append(null,2,4);
^^^^^^
The method append(char[], int, int) is ambiguous for the type StringBuilder
----------
2. ERROR in PR34840.java
(at line 9)
sb.append(null,2,3);
^^^^^^
The method append(char[], int, int) is ambiguous for the type StringBuilder
Are you sure the example is correct?
--
gnu_andrew at member dot fsf dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34840
- [Bug classpath/34840] Mismatch between Sun's Appendable and classpath's Appendable,
gnu_andrew at member dot fsf dot org <=