Name: dgC58589 Date: 12/10/97
The compiler dies with stack underflow errors
when an inner class chains assignments to outer
class private variables.
Here's some sample source:
----------------------------
package test;
public class foo
{
private class bar
{
private void testMethod()
{
// DIES
_a = _b = _c;
// COMPILES FINE
// _b = _c;
// _a = _b;
}
}
private int _a = 0;
private int _b = 0;
private int _c = 0;
}
(Review ID: 21553)
======================================================================
- duplicates
-
JDK-4131888 Underflow with inner classes and assigning private members
-
- Closed
-
-
JDK-4100457 sun.tools.java.CompilerError: codeConversion
-
- Closed
-
-
JDK-4165378 ERROR: sun.tools.java.CompilerError
-
- Closed
-
-
JDK-4193823 CompilerError: stack under flow: 16
-
- Closed
-