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

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

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


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

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Ellison reassigned HARMONY-4933:
------------------------------------

    Assignee: Tim Ellison

> [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
>            Assignee: Tim Ellison
>            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.


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

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Ellison closed HARMONY-4933.
--------------------------------


No response, assuming the fix is ok.

> [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
>            Assignee: Tim Ellison
>            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.


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

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-4933?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Ellison resolved HARMONY-4933.
----------------------------------

    Resolution: Fixed

Fixed the StyleSheet, but the FontManager problem no longer exists in the version of Sun's javac I have (1_6_0_b03) so I'm assuming it was a Sun bug that has been fixed.

Committed in SWING module at repo revision r611156.

Alexey, please check this now works for you.


> [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
>            Assignee: Tim Ellison
>            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.


[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

Posted by "Oliver Deakin (JIRA)" <ji...@apache.org>.
    [ 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.