Name: krT82822 Date: 10/05/99
If you compile the following code:
...
public void testFunction(Object[] thing, Object[] anotherThing)
and in the calling code you have:
String[] test = {"Hello", "there"} ;
int[] = numbers = {1,2,3} ;
testFunction (test, numbers) ;
The error message is VERY misleading, it talks about Array vs. Object[]
The new format of the error messages is too complicated, the old
style was more concise and informative (perhaps I'm just used to them).
The new style does NOT help the debugging process.
Also, thrid party applications that can parse JAVAC output and link
to the relevant source code line (e.g. Kawa IDE) will have to
be re-engineered for 1.3- thus severely harrassing the third party
market for no benefit.
public class Cryptique {
// if you have a method such as:
public static void testFunction(Object[] thing, Object[] anotherThing) {
}
public static void main(String[] args) {
// ...and in the calling code you have:
String[] test = new String[] {"Hello", "there"} ;
int[] numbers = new int[] {1,2,3} ;
testFunction (test, numbers) ;
}
}
------------
10/5/99 eval1127 -- see also # 4249659
(Review ID: 96145)
======================================================================
- duplicates
-
JDK-4278961 # error reporting and recovery issues in the new compiler
-
- Closed
-