This might be a bug in UHT. That being said, the Classes folder is now deprecated. You can put classes into Public (and Private) directly. This should work as of 4.1, although there were a few bugs that may or may not affect your use case. Those were recently fixed and will make it into 4.2.
Give that a shot and see if it works better, thanks!
“That being said, the Classes folder is now deprecated. You can put classes into Public (and Private) directly. This should work as of 4.1, although there were a few bugs that may or may not affect your use case. Those were recently fixed and will make it into 4.2.”
If your UClasses do not need to be available to any other modules (internal use only), then you should put the .h file into the Private folder as well.
The Public folder is for files that you want others to be able to see.