File tree 2 files changed +10
-0
lines changed
src/dotty/tools/dotc/core 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -342,6 +342,9 @@ object Flags {
342
342
/** Symbol is a Java-style varargs method */
343
343
final val JavaVarargs = termFlag(38 , " <varargs>" )
344
344
345
+ /** Symbol is a Java default method */
346
+ final val DefaultMethod = termFlag(39 , " <defaultmethod>" )
347
+
345
348
// Flags following this one are not pickled
346
349
347
350
/** Denotation is in train of being loaded and completed, used to catch cyclic dependencies */
Original file line number Diff line number Diff line change @@ -496,6 +496,13 @@ class ClassfileParser(
496
496
case tpnme.ExceptionsATTR =>
497
497
parseExceptions(attrLen)
498
498
499
+ case tpnme.CodeATTR =>
500
+ if (sym.owner is Flags .Interface ) {
501
+ sym.setFlag(Flags .DefaultMethod )
502
+ ctx.log(s " $sym in ${sym.owner} is a java8+ default method. " )
503
+ }
504
+ in.skip(attrLen)
505
+
499
506
case _ =>
500
507
}
501
508
in.bp = end
You can’t perform that action at this time.
0 commit comments