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

java_import does not accept :: for static nested classes #2074

Closed
byteit101 opened this issue Oct 27, 2014 · 0 comments
Closed

java_import does not accept :: for static nested classes #2074

byteit101 opened this issue Oct 27, 2014 · 0 comments
Milestone

Comments

@byteit101
Copy link
Member

@byteit101 byteit101 commented Oct 27, 2014

where opencv_core is a class and Mat is a static nested class,

org.bytedeco.javacpp.opencv_core::Mat # returns class, as expected
# org.bytedeco.javacpp.opencv_core$Mat # not valid expression, as expected
java_import 'org.bytedeco.javacpp.opencv_core$Mat' # works as expected
java_import 'org.bytedeco.javacpp.opencv_core::Mat' # NameError: cannot load Java class org.bytedeco.javacpp.opencv_core::Mat

3:07:15 PM byteit101: I think using :: makes sense and . does not but the string form probably does not split on :: which is a bug

@headius headius closed this in b42424d Nov 4, 2014
headius added a commit that referenced this issue Nov 4, 2014
Provide better error message when using :: in java_import (fixes #2074)
@enebo enebo added this to the JRuby 1.7.17 milestone Dec 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants