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

enum classes not correctly namespaced #180

Closed
nornagon opened this issue May 12, 2017 · 2 comments
Closed

enum classes not correctly namespaced #180

nornagon opened this issue May 12, 2017 · 2 comments
Labels

Comments

@nornagon
Copy link

javacpp-enum-class-repro.tar.gz

This C++:

enum class A { X };
enum class B { X };

Produces this Java:

/** enum class A */
public static final int
  X = 0;
/** enum class B */
public static final int
  X = 0;

Which doesn't compile due to the collision of variables named X.

Renaming one of them isn't possible, because infoMap.put(new Info("X").javaNames("whatever")) renames them both to whatever, and infoMap.put(new Info("A::X").javaNames("whatever")) has no effect.

@saudet
Copy link
Member

saudet commented May 17, 2017

This should be fixed with the commit above. Thanks for reporting!

@saudet
Copy link
Member

saudet commented Jul 27, 2017

Fix released in version 1.3.3. Enjoy!

@saudet saudet closed this as completed Jul 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants