Skip to content

Commit 6d1f095

Browse files
committed
Properly parse the ACC_SYNTHETIC bytecode flag
ACC_SYNTHETIC is used to mark definitions that are pure implementation artifacts and should not affect typechecking, this is normally represented using the Artifact flag in Scala, but for some reason we were missing it compared to Scala 2: https://github.com/scala/scala/blob/8f20a7d84924939698717d26b3e0e5a5c0da829c/src/reflect/scala/reflect/internal/ClassfileConstants.scala#L352
1 parent 713ac6e commit 6d1f095

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/classfile/ClassfileConstants.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ object ClassfileConstants {
341341
case JAVA_ACC_PRIVATE => Private
342342
case JAVA_ACC_PROTECTED => Protected
343343
case JAVA_ACC_FINAL => Final
344-
case JAVA_ACC_SYNTHETIC => Synthetic
344+
case JAVA_ACC_SYNTHETIC => SyntheticArtifact
345345
case JAVA_ACC_STATIC => JavaStatic
346346
case JAVA_ACC_ENUM => Enum
347347
case JAVA_ACC_ABSTRACT => if (isClass) Abstract else Deferred

0 commit comments

Comments
 (0)