File tree 1 file changed +5
-0
lines changed
compiler/src/dotty/tools/dotc/core/classfile
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -275,6 +275,7 @@ class ClassfileParser(
275
275
def complete (denot : SymDenotation )(using Context ): Unit = {
276
276
val sym = denot.symbol
277
277
val isEnum = (jflags & JAVA_ACC_ENUM ) != 0
278
+ val isNative = (jflags & JAVA_ACC_NATIVE ) != 0
278
279
val isConstructor = name eq nme.CONSTRUCTOR
279
280
280
281
/** Strip leading outer param from constructor and trailing access tag for
@@ -313,6 +314,10 @@ class ClassfileParser(
313
314
val isVarargs = denot.is(Flags .Method ) && (jflags & JAVA_ACC_VARARGS ) != 0
314
315
denot.info = sigToType(sig, isVarargs = isVarargs)
315
316
if (isConstructor) normalizeConstructorParams()
317
+ if isNative then
318
+ attrCompleter.annotations ::= Annotation .deferredSymAndTree(defn.NativeAnnot ) {
319
+ New (defn.NativeAnnot .typeRef, Nil )
320
+ }
316
321
denot.info = translateTempPoly(attrCompleter.complete(denot.info, isVarargs))
317
322
if (isConstructor) normalizeConstructorInfo()
318
323
You can’t perform that action at this time.
0 commit comments