-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
generic
-
generic
While compiling the following:
// ---
public class X {
public static void main(String [] args) {
if (args __matches String) {
System.out.println("Broken");
}
}
}
// ---
javac complains:
/home/srikanth/tmp/X.java:3: error: cannot find symbol
if (args __matches String) {
^
symbol: variable String
location: class X
1 error
This could be confusing to a user.
// ---
public class X {
public static void main(String [] args) {
if (args __matches String) {
System.out.println("Broken");
}
}
}
// ---
javac complains:
/home/srikanth/tmp/X.java:3: error: cannot find symbol
if (args __matches String) {
^
symbol: variable String
location: class X
1 error
This could be confusing to a user.