-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.1.4, 1.2.0
-
generic
-
generic
allan.jacobs@Eng 1997-10-17
Section 8.6.5 says that it is a compile time error for a constructor
to directly or indirectly invoke itself through a series of one or
more explicit constructor invocations involving "this". Javac is
in violation of this part of the specification.
Adapted from Modena test n0865201:
class X {
X(int j) {
this();
}
X() {
this(10);
}
}
- duplicates
-
JDK-1229458 compiler does not spot mutually recursive constructors
- Closed