Hi Dims,
It seems these might be exposing bugs with the Eclipse compiler from
previous discussions [1] & [2]. I'm surprised we havn't fixed these
problems in our codebase, but I guess we switched to using the Eclipse
compiler and they may have fallen by the wayside as a result. Having a
very quick search I cannot see a JIRA already existing for this issue.
Does anyone else remember why this was not fixed?
Regards,
Oliver
[1]
http://mail-archives.apache.org/mod_mbox/harmony-dev/200611.mbox/[EMAIL PROTECTED]
[2]
http://www.mail-archive.com/[EMAIL PROTECTED]/msg16132.html
Davanum Srinivas wrote:
Forgot to mention, Here's a build break when i use the modern compiler
("ant -Dhy.javac.compiler=modern"). Yes, i was able to find/drop ecj
jar into ant/lib to get past this. Should i log a bug?
thanks,
dims
-compile:
[mkdir] Created dir: C:\APACHE\harmony\working_classlib\build\classes
[hy.javac] Compiling 3843 source files to
C:\APACHE\harmony\working_classlib\build\classes
[hy.javac]
C:\APACHE\harmony\working_classlib\modules\swing\src\main\java\common\javax\swing\text\html\StyleSheet.java:820:
reference to remov
eAttributes is ambiguous, both method
removeAttributes(javax.swing.text.AttributeSet,java.util.Enumeration<?>)
in javax.swing.text.StyleContext
and method
removeAttributes(javax.swing.text.AttributeSet,javax.swing.text.html.StyleSheet.NameConverterEnumeration)
in javax.swing.text.html.
StyleSheet match
[hy.javac] return removeAttributes(old, new
NameConverterEnumeration(old, rem));
[hy.javac] ^
[hy.javac]
C:\APACHE\harmony\working_classlib\modules\swing\src\main\java\common\javax\swing\text\html\StyleSheet.java:825:
reference to remov
eAttributes is ambiguous, both method
removeAttributes(javax.swing.text.AttributeSet,java.util.Enumeration<?>)
in javax.swing.text.StyleContext
and method
removeAttributes(javax.swing.text.AttributeSet,javax.swing.text.html.StyleSheet.NameConverterEnumeration)
in javax.swing.text.html.
StyleSheet match
[hy.javac] return removeAttributes(old, new
NameConverterEnumeration(names));
[hy.javac] ^
[hy.javac] Note: Some input files use or override a deprecated API.
[hy.javac] Note: Recompile with -Xlint:deprecation for details.
[hy.javac] Note: Some input files use unchecked or unsafe operations.
[hy.javac] Note: Recompile with -Xlint:unchecked for details.
[hy.javac] 2 errors
--
Oliver Deakin
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU