Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.9
-
None
-
NA
-
Patch Available
Description
So say you have a namespace 'com.example', and in this namespace you have constant definitions in multiple files:
Example1.thrift, Example2.thrift
Generating either of these files compiles to com/example/Constants.java
So you cannot have more than one file containing constants in this namespace, as compiling Example2 overrides the code compiled from Example1.
In the regular java codegen the compile paths are different:
Example1.thrift => Example1Constants.java
Example2.thrift => Example2Constants.java
This seems to be the optimal solution as losing code is never good. I've patched the Javame compiler to act the same as the Java compiler (will attach a patch)
Attachments
Issue Links
- is related to
-
THRIFT-1977 C# compiler should generate constant files prefixed with thrift file name
- Closed