You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Todd Volkert (JIRA)" <ji...@apache.org> on 2009/08/28 14:14:59 UTC

[jira] Created: (PIVOT-249) Compile warnings [rawtypes] when built with JDK1.7

Compile warnings [rawtypes] when built with JDK1.7
--------------------------------------------------

                 Key: PIVOT-249
                 URL: https://issues.apache.org/jira/browse/PIVOT-249
             Project: Pivot
          Issue Type: Bug
          Components: project
    Affects Versions: 1.2, 1.1, 1.3
            Reporter: Todd Volkert
            Priority: Trivial
             Fix For: 1.3.2


core:
    [javac] Compiling 73 source files to /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/core/ant-bin
    [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/core/src/org/apache/pivot/collections/adapter/MapAdapter.java:102: warning: [rawtypes] found raw type: SortedMap
    [javac]         if (this.map instanceof SortedMap) {
    [javac]                                 ^
    [javac]   missing type parameters for generic class SortedMap<K,V>
    [javac]   where K,V are type-variables:
    [javac]     K extends Object declared in interface SortedMap
    [javac]     V extends Object declared in interface SortedMap
    [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/core/src/org/apache/pivot/collections/adapter/MapAdapter.java:103: warning: [rawtypes] found raw type: SortedMap
    [javac]             return ((SortedMap) this.map).comparator();
    [javac]                      ^
    [javac]   missing type parameters for generic class SortedMap<K,V>
    [javac]   where K,V are type-variables:
    [javac]     K extends Object declared in interface SortedMap
    [javac]     V extends Object declared in interface SortedMap
    [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/core/src/org/apache/pivot/collections/adapter/MapAdapter.java:112: warning: [rawtypes] found raw type: SortedMap
    [javac]         if (this.map instanceof SortedMap) {
    [javac]                                 ^
    [javac]   missing type parameters for generic class SortedMap<K,V>
    [javac]   where K,V are type-variables:
    [javac]     K extends Object declared in interface SortedMap
    [javac]     V extends Object declared in interface SortedMap
    [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/core/src/org/apache/pivot/collections/adapter/MapAdapter.java:114: warning: [rawtypes] found raw type: Constructor
    [javac]                 Constructor constructor = this.map.getClass().getConstructor(Comparator.class);
    [javac]                 ^
    [javac]   missing type parameters for generic class Constructor<T>
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in class Constructor
    [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/core/src/org/apache/pivot/collections/adapter/MapAdapter.java:116: warning: [rawtypes] found raw type: Map
    [javac]                     java.util.Map<K, V> map = (java.util.Map) constructor.newInstance(comparator);
    [javac]                                                         ^
    [javac]   missing type parameters for generic class Map<K,V>
    [javac]   where K,V are type-variables:
    [javac]     K extends Object declared in interface Map
    [javac]     V extends Object declared in interface Map
    [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/core/src/org/apache/pivot/collections/adapter/SetAdapter.java:99: warning: [rawtypes] found raw type: SortedSet
    [javac]         if (this.set instanceof java.util.SortedSet) {
    [javac]                                          ^
    [javac]   missing type parameters for generic class SortedSet<E>
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in interface SortedSet
    [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/core/src/org/apache/pivot/collections/adapter/SetAdapter.java:100: warning: [rawtypes] found raw type: SortedSet
    [javac]             return ((java.util.SortedSet) this.set).comparator();
    [javac]                               ^
    [javac]   missing type parameters for generic class SortedSet<E>
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in interface SortedSet
    [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/core/src/org/apache/pivot/collections/adapter/SetAdapter.java:109: warning: [rawtypes] found raw type: SortedSet
    [javac]         if (this.set instanceof java.util.SortedSet) {
    [javac]                                          ^
    [javac]   missing type parameters for generic class SortedSet<E>
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in interface SortedSet
    [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/core/src/org/apache/pivot/collections/adapter/SetAdapter.java:111: warning: [rawtypes] found raw type: Constructor
    [javac]                 Constructor constructor = this.set.getClass().getConstructor(Comparator.class);
    [javac]                 ^
    [javac]   missing type parameters for generic class Constructor<T>
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in class Constructor
    [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/core/src/org/apache/pivot/collections/adapter/SetAdapter.java:113: warning: [rawtypes] found raw type: SortedSet
    [javac]                     java.util.SortedSet<E> set = (java.util.SortedSet) constructor.newInstance(comparator);
    [javac]                                                            ^
    [javac]   missing type parameters for generic class SortedSet<E>
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in interface SortedSet
    [javac] 10 warnings

wtk:
    [mkdir] Created dir: /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/wtk/ant-bin
    [javac] Compiling 404 source files to /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/wtk/ant-bin
    [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/wtk/src/org/apache/pivot/wtk/DesktopApplicationContext.java:139: warning: [rawtypes] found raw type: Class
    [javac]                                             new Class[]{eawtApplicationListenerClass}, handler);
    [javac]                                                 ^
    [javac]   missing type parameters for generic class Class<T>
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in class Class
    [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/wtk/src/org/apache/pivot/wtkx/WTKXSerializer.java:340: warning: [rawtypes] found raw type: Sequence
    [javac]                                             if (element.value instanceof Sequence) {
    [javac]                                                                          ^
    [javac]   missing type parameters for generic class Sequence<T>
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in interface Sequence
    [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/wtk/src/org/apache/pivot/wtkx/WTKXSerializer.java:598: warning: [rawtypes] found raw type: Dictionary
    [javac]                                     if (element.value instanceof Dictionary) {
    [javac]                                                                  ^
    [javac]   missing type parameters for generic class Dictionary<K,V>
    [javac]   where K,V are type-variables:
    [javac]     K extends Object declared in interface Dictionary
    [javac]     V extends Object declared in interface Dictionary
    [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/wtk/src/org/apache/pivot/wtkx/WTKXSerializer.java:611: warning: [rawtypes] found raw type: Sequence
    [javac]                                         if (element.parent.value instanceof Sequence) {
    [javac]                                                                             ^
    [javac]   missing type parameters for generic class Sequence<T>
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in interface Sequence
    [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/wtk/src/org/apache/pivot/wtkx/WTKXSerializer.java:615: warning: [rawtypes] found raw type: ListenerList
    [javac]                                             if (element.parent.value instanceof ListenerList) {
    [javac]                                                                                 ^
    [javac]   missing type parameters for generic class ListenerList<T>
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in class ListenerList
    [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/wtk/src/org/apache/pivot/wtkx/WTKXSerializer.java:623: warning: [rawtypes] found raw type: Dictionary
    [javac]                                     if (element.value instanceof Dictionary) {
    [javac]                                                                  ^
    [javac]   missing type parameters for generic class Dictionary<K,V>
    [javac]   where K,V are type-variables:
    [javac]     K extends Object declared in interface Dictionary
    [javac]     V extends Object declared in interface Dictionary
    [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/wtk/src/org/apache/pivot/wtkx/WTKXSerializer.java:833: warning: [rawtypes] found raw type: Class
    [javac]                                                 new Class[]{listenerClass}, handler);
    [javac]                                                     ^
    [javac]   missing type parameters for generic class Class<T>
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in class Class
    [javac] 7 warnings



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (PIVOT-249) Compile warnings [rawtypes] when built with JDK1.7

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

Todd Volkert resolved PIVOT-249.
--------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 1.4.1)
                   1.4
         Assignee: Todd Volkert

> Compile warnings [rawtypes] when built with JDK1.7
> --------------------------------------------------
>
>                 Key: PIVOT-249
>                 URL: https://issues.apache.org/jira/browse/PIVOT-249
>             Project: Pivot
>          Issue Type: Bug
>          Components: project
>    Affects Versions: 1.1, 1.2, 1.3
>            Reporter: Todd Volkert
>            Assignee: Todd Volkert
>            Priority: Trivial
>             Fix For: 1.4
>
>
> core:
>     [javac] Compiling 73 source files to /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/core/ant-bin
>     [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/core/src/org/apache/pivot/collections/adapter/MapAdapter.java:102: warning: [rawtypes] found raw type: SortedMap
>     [javac]         if (this.map instanceof SortedMap) {
>     [javac]                                 ^
>     [javac]   missing type parameters for generic class SortedMap<K,V>
>     [javac]   where K,V are type-variables:
>     [javac]     K extends Object declared in interface SortedMap
>     [javac]     V extends Object declared in interface SortedMap
>     [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/core/src/org/apache/pivot/collections/adapter/MapAdapter.java:103: warning: [rawtypes] found raw type: SortedMap
>     [javac]             return ((SortedMap) this.map).comparator();
>     [javac]                      ^
>     [javac]   missing type parameters for generic class SortedMap<K,V>
>     [javac]   where K,V are type-variables:
>     [javac]     K extends Object declared in interface SortedMap
>     [javac]     V extends Object declared in interface SortedMap
>     [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/core/src/org/apache/pivot/collections/adapter/MapAdapter.java:112: warning: [rawtypes] found raw type: SortedMap
>     [javac]         if (this.map instanceof SortedMap) {
>     [javac]                                 ^
>     [javac]   missing type parameters for generic class SortedMap<K,V>
>     [javac]   where K,V are type-variables:
>     [javac]     K extends Object declared in interface SortedMap
>     [javac]     V extends Object declared in interface SortedMap
>     [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/core/src/org/apache/pivot/collections/adapter/MapAdapter.java:114: warning: [rawtypes] found raw type: Constructor
>     [javac]                 Constructor constructor = this.map.getClass().getConstructor(Comparator.class);
>     [javac]                 ^
>     [javac]   missing type parameters for generic class Constructor<T>
>     [javac]   where T is a type-variable:
>     [javac]     T extends Object declared in class Constructor
>     [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/core/src/org/apache/pivot/collections/adapter/MapAdapter.java:116: warning: [rawtypes] found raw type: Map
>     [javac]                     java.util.Map<K, V> map = (java.util.Map) constructor.newInstance(comparator);
>     [javac]                                                         ^
>     [javac]   missing type parameters for generic class Map<K,V>
>     [javac]   where K,V are type-variables:
>     [javac]     K extends Object declared in interface Map
>     [javac]     V extends Object declared in interface Map
>     [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/core/src/org/apache/pivot/collections/adapter/SetAdapter.java:99: warning: [rawtypes] found raw type: SortedSet
>     [javac]         if (this.set instanceof java.util.SortedSet) {
>     [javac]                                          ^
>     [javac]   missing type parameters for generic class SortedSet<E>
>     [javac]   where E is a type-variable:
>     [javac]     E extends Object declared in interface SortedSet
>     [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/core/src/org/apache/pivot/collections/adapter/SetAdapter.java:100: warning: [rawtypes] found raw type: SortedSet
>     [javac]             return ((java.util.SortedSet) this.set).comparator();
>     [javac]                               ^
>     [javac]   missing type parameters for generic class SortedSet<E>
>     [javac]   where E is a type-variable:
>     [javac]     E extends Object declared in interface SortedSet
>     [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/core/src/org/apache/pivot/collections/adapter/SetAdapter.java:109: warning: [rawtypes] found raw type: SortedSet
>     [javac]         if (this.set instanceof java.util.SortedSet) {
>     [javac]                                          ^
>     [javac]   missing type parameters for generic class SortedSet<E>
>     [javac]   where E is a type-variable:
>     [javac]     E extends Object declared in interface SortedSet
>     [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/core/src/org/apache/pivot/collections/adapter/SetAdapter.java:111: warning: [rawtypes] found raw type: Constructor
>     [javac]                 Constructor constructor = this.set.getClass().getConstructor(Comparator.class);
>     [javac]                 ^
>     [javac]   missing type parameters for generic class Constructor<T>
>     [javac]   where T is a type-variable:
>     [javac]     T extends Object declared in class Constructor
>     [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/core/src/org/apache/pivot/collections/adapter/SetAdapter.java:113: warning: [rawtypes] found raw type: SortedSet
>     [javac]                     java.util.SortedSet<E> set = (java.util.SortedSet) constructor.newInstance(comparator);
>     [javac]                                                            ^
>     [javac]   missing type parameters for generic class SortedSet<E>
>     [javac]   where E is a type-variable:
>     [javac]     E extends Object declared in interface SortedSet
>     [javac] 10 warnings
> wtk:
>     [mkdir] Created dir: /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/wtk/ant-bin
>     [javac] Compiling 404 source files to /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/wtk/ant-bin
>     [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/wtk/src/org/apache/pivot/wtk/DesktopApplicationContext.java:139: warning: [rawtypes] found raw type: Class
>     [javac]                                             new Class[]{eawtApplicationListenerClass}, handler);
>     [javac]                                                 ^
>     [javac]   missing type parameters for generic class Class<T>
>     [javac]   where T is a type-variable:
>     [javac]     T extends Object declared in class Class
>     [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/wtk/src/org/apache/pivot/wtkx/WTKXSerializer.java:340: warning: [rawtypes] found raw type: Sequence
>     [javac]                                             if (element.value instanceof Sequence) {
>     [javac]                                                                          ^
>     [javac]   missing type parameters for generic class Sequence<T>
>     [javac]   where T is a type-variable:
>     [javac]     T extends Object declared in interface Sequence
>     [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/wtk/src/org/apache/pivot/wtkx/WTKXSerializer.java:598: warning: [rawtypes] found raw type: Dictionary
>     [javac]                                     if (element.value instanceof Dictionary) {
>     [javac]                                                                  ^
>     [javac]   missing type parameters for generic class Dictionary<K,V>
>     [javac]   where K,V are type-variables:
>     [javac]     K extends Object declared in interface Dictionary
>     [javac]     V extends Object declared in interface Dictionary
>     [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/wtk/src/org/apache/pivot/wtkx/WTKXSerializer.java:611: warning: [rawtypes] found raw type: Sequence
>     [javac]                                         if (element.parent.value instanceof Sequence) {
>     [javac]                                                                             ^
>     [javac]   missing type parameters for generic class Sequence<T>
>     [javac]   where T is a type-variable:
>     [javac]     T extends Object declared in interface Sequence
>     [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/wtk/src/org/apache/pivot/wtkx/WTKXSerializer.java:615: warning: [rawtypes] found raw type: ListenerList
>     [javac]                                             if (element.parent.value instanceof ListenerList) {
>     [javac]                                                                                 ^
>     [javac]   missing type parameters for generic class ListenerList<T>
>     [javac]   where T is a type-variable:
>     [javac]     T extends Object declared in class ListenerList
>     [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/wtk/src/org/apache/pivot/wtkx/WTKXSerializer.java:623: warning: [rawtypes] found raw type: Dictionary
>     [javac]                                     if (element.value instanceof Dictionary) {
>     [javac]                                                                  ^
>     [javac]   missing type parameters for generic class Dictionary<K,V>
>     [javac]   where K,V are type-variables:
>     [javac]     K extends Object declared in interface Dictionary
>     [javac]     V extends Object declared in interface Dictionary
>     [javac] /home/tvolkert/pivot/src/tar/apache-pivot-1.3-incubating-src/wtk/src/org/apache/pivot/wtkx/WTKXSerializer.java:833: warning: [rawtypes] found raw type: Class
>     [javac]                                                 new Class[]{listenerClass}, handler);
>     [javac]                                                     ^
>     [javac]   missing type parameters for generic class Class<T>
>     [javac]   where T is a type-variable:
>     [javac]     T extends Object declared in class Class
>     [javac] 7 warnings

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.