Closed Benjamin-Bergman closed 6 months ago
This also fails with everything related to the nested class removed (The IntelliJ plugin marks only that extension method as not existing).
As a side note, it would be nice to have a full example project using manifold-ext
(perhaps to add functionality to a json schema, which happens to be my use case). I'd be happy to submit a PR to add that once this is resolved.
Sorry, you cannot make class extensions on Java source files in the same module, only on compiled Java classes outside the module/project containing the extension class.
You can, however, extend types produced from type manifolds in the same module such as JSON and SQL types.
There is compiler warning about this on the offending extension class. It should probably be an error though shrug
As a side note, it would be nice to have a full example project using manifold-ext (perhaps to add functionality to a json schema, which happens to be my use case). I'd be happy to submit a PR to add that once this is resolved.
Thanks!
Describe the bug Extension methods fail too compile with a message like:
Both usages of extension methods in the code below fail to compile.
To Reproduce Steps to reproduce the behavior: Here is my folder structure:
Here is my
pom.xml
(which is exactly the example listed):Here is
Foo.java
:Here is
FooExt.java
:Expected behavior Running
mvn compile
should succeed without error.Desktop (please complete the following information):
javac --version
: javac 17.0.10mvn --version
:Stack trace Here is the entire output of
mvn compile --debug -Dstyle.color=never
: output.txt