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

Constants that are defined twice in ruby due to capitalization #1

Open
nwoetzel opened this issue Aug 9, 2016 · 0 comments
Open

Constants that are defined twice in ruby due to capitalization #1

nwoetzel opened this issue Aug 9, 2016 · 0 comments

Comments

@nwoetzel
Copy link
Member

nwoetzel commented Aug 9, 2016

There are some constants in SMARTSParserConstants that are defined in lower and upper case (with different values) that are capitalized in the lib, so that an error is emitted.
http://cdk.github.io/cdk/1.5/docs/api/org/openscience/cdk/smiles/smarts/parser/SMARTSParserConstants.html
This is the error:

lib/rcdk/java.rb:37: warning: already initialized constant Rjb::Org_openscience_cdk_smiles_smarts_parser_SMARTSParser::C
lib/rcdk/java.rb:37: warning: previous definition of C was here
lib/rcdk/java.rb:37: warning: already initialized constant Rjb::Org_openscience_cdk_smiles_smarts_parser_SMARTSParser::N
lib/rcdk/java.rb:37: warning: previous definition of N was here
lib/rcdk/java.rb:37: warning: already initialized constant Rjb::Org_openscience_cdk_smiles_smarts_parser_SMARTSParser::O
lib/rcdk/java.rb:37: warning: previous definition of O was here
...
Rjb::Org_openscience_cdk_smiles_smarts_parser_SMARTSParser::P
...
Rjb::Org_openscience_cdk_smiles_smarts_parser_SMARTSParser::S
...
Rjb::Org_openscience_cdk_smiles_smarts_parser_SMARTSParser::A
...
Rjb::Org_openscience_cdk_smiles_smarts_parser_SMARTSParser::H
...
Rjb::Org_openscience_cdk_smiles_smarts_parser_SMARTSParser::V
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