You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After compiling it, I cannot seem to find the corresponding
publicstaticfinalFactoryfactory
field in the class Map. There are factories for other types mentioned in the example, but not for this one. Why is that? Does it have anything to do with generics in Java not being reifiable?
The text was updated successfully, but these errors were encountered:
The factory type depends on the generic parameters. You need to specify those parameters in order to construct a factory. The generated code for your Map struct should include a Map.newFactory() function that you can use for this purpose.
There's an example of a generic struct on Cap’n Proto page:
After compiling it, I cannot seem to find the corresponding
field in the class
Map
. There are factories for other types mentioned in the example, but not for this one. Why is that? Does it have anything to do with generics in Java not being reifiable?The text was updated successfully, but these errors were encountered: