Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't Extend from Parallel Directory Structure #749

Open
bcwhite-code opened this issue Jan 23, 2023 · 0 comments
Open

Can't Extend from Parallel Directory Structure #749

bcwhite-code opened this issue Jan 23, 2023 · 0 comments

Comments

@bcwhite-code
Copy link

Using the latest JSweet...

I have a class defined in java/com/foo/lib/Thing.java:

package com.foo.lib;
public class com.foo.lib.Thing {
  ... some methods ...
}

It transpiles just fine.

I have another class in java/com/foo/project/common/MyThing.java:

package com.foo.project.common;
public class MyThing extends com.foo.lib.Thing {
  ... methods making calls to methods from Thing ...
}

This works fine compiled with Java but It fails to transpile with JSweet, saying:

cannot find name 'Thing' at (every line that calls a method inside Thing)

If I move "Thing" to be in java/com/foo/project/common or even java/com/foo/project then it'll transpile just fine even if I don't change the path.to.Thing after "extends".

It seems like JSweet only looks up the directory structure for classes to extend and not the defined path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant