You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Oliver Deakin (JIRA)" <ji...@apache.org> on 2007/10/22 11:36:50 UTC

[jira] Commented: (HARMONY-4933) [classlib][swing] javac fails to compile javax\swing\text\html\StyleSheet.java and org\apache\harmony\awt\gl\font\FontManager.java

    [ https://issues.apache.org/jira/browse/HARMONY-4933?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12536610 ] 

Oliver Deakin commented on HARMONY-4933:
----------------------------------------

This compile works on ECJ compiler due to a bug - Olivier has raised it in the Eclipse Bugzilla [1]. Harmony dev list discussion here [2].

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=206930
[2] http://mail-archives.apache.org/mod_mbox/harmony-dev/200710.mbox/%3c19e0530f0710190743k3780cb57rfaa608f2a1e7c2ce@mail.gmail.com%3e

> [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.