langtools/test/tools/javac/6304921/T6304921.out
author mcimadamore
Fri, 13 Feb 2009 11:57:33 +0000
changeset 2085 4792e12a8ca2
parent 1996 c855318a4b03
child 2984 e15ff3a34054
permissions -rw-r--r--
6769027: Source line should be displayed immediately after the first diagnostic line Summary: Added support for customizing diagnostic output via API/command line flags Reviewed-by: jjg
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1538
3cbbc9424f43 6763518: Impossible to suppress raw-type warnings
mcimadamore
parents: 1358
diff changeset
     1
T6304921.java:671/671/680: warning: [rawtypes] found raw type: java.util.ArrayList
1358
a51c5f89f8af 6747671: -Xlint:rawtypes
mcimadamore
parents: 323
diff changeset
     2
        List<Integer> list = new ArrayList();
a51c5f89f8af 6747671: -Xlint:rawtypes
mcimadamore
parents: 323
diff changeset
     3
                                 ^
2085
4792e12a8ca2 6769027: Source line should be displayed immediately after the first diagnostic line
mcimadamore
parents: 1996
diff changeset
     4
  missing type parameters for generic class java.util.ArrayList<E>
323
ba0845d0b4dc 6618930: (javac) fix test after whitespace normalization
ksrini
parents: 10
diff changeset
     5
T6304921.java:667/667/682: warning: [unchecked] unchecked conversion
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     6
        List<Integer> list = new ArrayList();
06bc494ca11e Initial load
duke
parents:
diff changeset
     7
                             ^
2085
4792e12a8ca2 6769027: Source line should be displayed immediately after the first diagnostic line
mcimadamore
parents: 1996
diff changeset
     8
  required: java.util.List<java.lang.Integer>
4792e12a8ca2 6769027: Source line should be displayed immediately after the first diagnostic line
mcimadamore
parents: 1996
diff changeset
     9
  found:    java.util.ArrayList
1996
c855318a4b03 6595666: fix -Werror
jjg
parents: 1538
diff changeset
    10
error: warnings found and -Werror specified
323
ba0845d0b4dc 6618930: (javac) fix test after whitespace normalization
ksrini
parents: 10
diff changeset
    11
T6304921.java:727/733/737: cannot find symbol
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    12
        System.orr.println("abc"); // name not found
06bc494ca11e Initial load
duke
parents:
diff changeset
    13
              ^
2085
4792e12a8ca2 6769027: Source line should be displayed immediately after the first diagnostic line
mcimadamore
parents: 1996
diff changeset
    14
  symbol:   variable orr
4792e12a8ca2 6769027: Source line should be displayed immediately after the first diagnostic line
mcimadamore
parents: 1996
diff changeset
    15
  location: class java.lang.System
323
ba0845d0b4dc 6618930: (javac) fix test after whitespace normalization
ksrini
parents: 10
diff changeset
    16
T6304921.java:812/816/822: operator + cannot be applied to int,boolean
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    17
        return 123 + true; // bad binary expression
06bc494ca11e Initial load
duke
parents:
diff changeset
    18
                   ^
1996
c855318a4b03 6595666: fix -Werror
jjg
parents: 1538
diff changeset
    19
3 errors
c855318a4b03 6595666: fix -Werror
jjg
parents: 1538
diff changeset
    20
2 warnings