Skip to content
Permalink
Browse files
8267672: [lworld] A couple of cleanups to Unified class file generati…
…on scheme
  • Loading branch information
Srikanth Adayapalam committed May 25, 2021
1 parent e150bd9 commit 7e2f202253cac45c066e3280947a944a37806505
@@ -234,7 +234,13 @@ public String visitClassType(ClassType t, Locale locale) {
buf.append(printAnnotations(t));
buf.append(className(t, true, locale));
}
if (t.isReferenceProjection()) {
boolean isReferenceProjection;
try {
isReferenceProjection = t.isReferenceProjection();
} catch (CompletionFailure cf) {
isReferenceProjection = false; // handle missing types gracefully.
}
if (isReferenceProjection) {
buf.append('.');
buf.append(t.tsym.name.table.names.ref);
}
@@ -1140,7 +1140,7 @@ JCExpression access(Symbol sym, JCExpression tree, JCExpression enclOp, boolean
// Convert type idents to
// <flat name> or <package name> . <flat name>
Name flatname = Convert.shortName(sym.flatName());
if (requireReferenceProjection) {
if (types.splitPrimitiveClass && requireReferenceProjection) {
flatname = flatname.append('$', names.ref);
}
while (base != null &&

0 comments on commit 7e2f202

Please sign in to comment.