src/share/classes/com/sun/tools/javac/comp/TransTypes.java

changeset 2425
76b61848c9a4
parent 2411
71767cdf52a7
child 2525
2eb010b6cb22
child 2904
14891e981af0
equal deleted inserted replaced
2424:7e97c65c373c 2425:76b61848c9a4
965 // process superclass before derived 965 // process superclass before derived
966 if (st.hasTag(CLASS)) { 966 if (st.hasTag(CLASS)) {
967 translateClass((ClassSymbol)st.tsym); 967 translateClass((ClassSymbol)st.tsym);
968 } 968 }
969 969
970 Env<AttrContext> myEnv = enter.typeEnvs.remove(c); 970 Env<AttrContext> myEnv = enter.getEnv(c);
971 if (myEnv == null) { 971 if (myEnv == null || (c.flags_field & TYPE_TRANSLATED) != 0) {
972 return; 972 return;
973 } 973 }
974 c.flags_field |= TYPE_TRANSLATED;
974 975
975 /* The two assertions below are set for early detection of any attempt 976 /* The two assertions below are set for early detection of any attempt
976 * to translate a class that: 977 * to translate a class that:
977 * 978 *
978 * 1) has no compile state being it the most outer class. 979 * 1) has no compile state being it the most outer class.

mercurial