[classlib][swing] javac fails to compile javax\swing\text\html\StyleSheet.java and org\apache\harmony\awt\gl\font\FontManager.java
----------------------------------------------------------------------------------------------------------------------------------
Key: HARMONY-4933
URL: https://issues.apache.org/jira/browse/HARMONY-4933
Project: Harmony
Issue Type: Bug
Components: Classlib
Reporter: Alexey Varlamov
Priority: Minor
To reproduce:
working_classlib>ant -Dbuild.module=swing -Dhy.javac.compiler=modern rebuild-java
...
[hy.javac] C:\apache-dev\Harmony\trunk\working_classlib\modules\awt\src\main\ja
va\common\org\apache\harmony\awt\gl\font\FontManager.java:841: inconvertible types
[hy.javac] found : java.lang.ref.Reference<capture of ? extends java.awt.peer.FontPeer>
[hy.javac] required: org.apache.harmony.awt.gl.font.FontManager.HashMapReference
[hy.javac] while ((r = (HashMapReference)queue.poll()) != null) {
[hy.javac] ^
[hy.javac] C:\apache-dev\Harmony\trunk\working_classlib\modules\swing\src\main\
java\common\javax\swing\text\html\StyleSheet.java:820: reference to removeAttrib
utes is ambiguous, both method removeAttributes(javax.swing.text.AttributeSet,ja
va.util.Enumeration<?>) in javax.swing.text.StyleContext and method removeAttrib
utes(javax.swing.text.AttributeSet,javax.swing.text.html.StyleSheet.NameConverte
rEnumeration) in javax.swing.text.html.StyleSheet match
[hy.javac] return removeAttributes(old, new NameConverterEnumeration(old, rem));
[hy.javac] ^
[hy.javac] C:\apache-dev\Harmony\trunk\working_classlib\modules\swing\src\main\
java\common\javax\swing\text\html\StyleSheet.java:825: reference to removeAttrib
utes is ambiguous, both method removeAttributes(javax.swing.text.AttributeSet,ja
va.util.Enumeration<?>) in javax.swing.text.StyleContext and method removeAttrib
utes(javax.swing.text.AttributeSet,javax.swing.text.html.StyleSheet.NameConverte
rEnumeration) in javax.swing.text.html.StyleSheet match
[hy.javac] return removeAttributes(old, new NameConverterEnumeration(names));
[hy.javac] ^
[hy.javac] 3 errors
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
|