-
Bug
-
Resolution: Fixed
-
P5
-
1.1, 1.1.3
-
1.2beta
-
generic, x86, sparc
-
generic, solaris_2.5.1, windows_nt
-
Not verified
Name: mc57594 Date: 02/26/97
Hi,
I think this code should not compile. But it does,
Java 1.1 beta 2 on Solaris seems to have no problem
with it :-).
class t
{
void a[];
void[] x()
{
a = x();
return a;
}
}
Best regards,
Tudor
P.S.
The bug has been discovered by Mark MacBeth, ###@###.###.
company - University of New Hampshire , email - ###@###.###
======================================================================
- duplicates
-
JDK-4030495 javac throws an exception on illegal type expressions
-
- Closed
-
- relates to
-
JDK-4118231 compiler allows illegal type void[]
-
- Closed
-