Compiling the following program fails because duplicated variable are declared in Java programs.
It seems that this error occurs only if the program-id is MAIN.
IDENTIFICATION DIVISION.
PROGRAM-ID. MAIN.
ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
DATA DIVISION.
WORKING-STORAGE SECTION.
PROCEDURE DIVISION.
DISPLAY "hello".
./MAIN.java:202: error: variable l_MAIN is already defined in class MAIN
private final static int l_MAIN = 2;