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

Error creating extension class on class with annotation having enum const values #88

Closed
rsmckinney opened this issue May 15, 2019 · 1 comment

Comments

Projects
None yet
1 participant
@rsmckinney
Copy link
Member

commented May 15, 2019

Describe the bug
Error creating extension class on class with an annotation having an enum const value.

To Reproduce
Steps to reproduce the behavior:

  1. Create extension on class with an annotation having an enum const value e.g.,
import xyz.SomeEnum;
public class SomeClass {
  @SomeAnnotation(SomeEnum.Value1)
  public void foo() {
  }
}

@Extension
public class MySomeClassExtension {
  public static void foo(@This SomeClass thiz) { ... }
}
  1. Compile project

Expected behavior
Should compile without errors. Instead compile error such as:

[ERROR] /abc/SomeClass.java:[xx.yy] cannot find symbol
[ERROR]   symbol:   variable Value1

Desktop (please complete the following information):

  • Manifold version: 0.65-alpha

Originally reported by @RaviH

@rsmckinney rsmckinney added the bug label May 16, 2019

rsmckinney added a commit that referenced this issue May 16, 2019

Manifold ext change (#88)
- manifold source projection fix: fully qualify enum const used in annotations on class members
@rsmckinney

This comment has been minimized.

Copy link
Member Author

commented May 16, 2019

Fix available in release 0.68-alpha

@rsmckinney rsmckinney closed this May 16, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.