Lines 39-45
Link Here
|
39 |
SourceTypeBinding sourceType = currentScope.outerMostClassScope().enclosingSourceType(); |
39 |
SourceTypeBinding sourceType = currentScope.outerMostClassScope().enclosingSourceType(); |
40 |
// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=22334 |
40 |
// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=22334 |
41 |
if (!sourceType.isInterface() |
41 |
if (!sourceType.isInterface() |
42 |
&& !sourceType.isBaseType() |
42 |
&& !targetType.isBaseType() |
43 |
&& currentScope.compilerOptions().sourceLevel < ClassFileConstants.JDK1_5) { |
43 |
&& currentScope.compilerOptions().sourceLevel < ClassFileConstants.JDK1_5) { |
44 |
syntheticField = sourceType.addSyntheticFieldForClassLiteral(targetType, currentScope); |
44 |
syntheticField = sourceType.addSyntheticFieldForClassLiteral(targetType, currentScope); |
45 |
} |
45 |
} |