You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This results in a rather informative error: An unknown compilation problem occurred when compiling.
I had to run the compilation process in debug mode to track down the actual cause:
manifold.api.gen.TypeNameParserException: expecting 'extends' or 'super'
at manifold.api.gen.TypeNameParser.verifySuperOrExtends(TypeNameParser.java:160)
at manifold.api.gen.TypeNameParser.parseType(TypeNameParser.java:91)
at manifold.api.gen.TypeNameParser.parseCompoundType(TypeNameParser.java:151)
at manifold.api.gen.TypeNameParser.parseType(TypeNameParser.java:92)
at manifold.api.gen.TypeNameParser.parse(TypeNameParser.java:43)
at manifold.api.gen.SrcType.<init>(SrcType.java:61)
at manifold.internal.javac.SrcClassUtil.makeTypeVarType(SrcClassUtil.java:1109)
at manifold.internal.javac.SrcClassUtil.addMethod(SrcClassUtil.java:370)
at manifold.internal.javac.SrcClassUtil.makeSrcClass(SrcClassUtil.java:156)
at manifold.internal.javac.SrcClassUtil.makeStub(SrcClassUtil.java:81)
at manifold.internal.javac.SrcClassUtil.makeStub(SrcClassUtil.java:75)
at manifold.internal.javac.ClassSymbols.makeSrcClassStub(ClassSymbols.java:327)
at manifold.internal.javac.ClassSymbols.makeSrcClassStub(ClassSymbols.java:307)
at manifold.ext.ExtCodeGen.addExtensions(ExtCodeGen.java:259)
at manifold.ext.ExtCodeGen.make(ExtCodeGen.java:99)
at manifold.ext.ExtensionManifold.contribute(ExtensionManifold.java:360)
at manifold.ext.ExtensionManifold.contribute(ExtensionManifold.java:54)
Removing the @Nullable annotation from the generic bound resolves the issue,
The text was updated successfully, but these errors were encountered:
EotT123
pushed a commit
to EotT123/manifold-test
that referenced
this issue
May 16, 2025
Uh oh!
There was an error while loading. Please reload this page.
Using annotations on generic type parameters in an extension method causes a compilation failure in Manifold.
This results in a rather informative error:
An unknown compilation problem occurred
when compiling.I had to run the compilation process in debug mode to track down the actual cause:
Removing the
@Nullable
annotation from the generic bound resolves the issue,The text was updated successfully, but these errors were encountered: