Where do I submit bug reports in IntelliJ

Answered

I found a bug in the Generate tool when generating from abstract classes and implementing an interface. If the class is extended and the abstract class coded, the Type is left as T in the subclass. But when the abstract class isn't coded, the type is correctly produced in the subclass

 

Example:

Class Hierarchy:

interface CrudRepository;

superclass AbstractMapService;

descendents: OwnerServiceMap, PetServiceMap

class signature: public class [OwnerServiceMap] extends AbstractMapService<[Owner], Long> implements CrudRepository<[Owner], Long>

the AbstractMapService base, (when it is coded causes the bug)

Reproduction of bug:

  1. Created AbstractMapService new file (left empty)
  2. Created OwnerServiceMap new file - extended with AbstractMapService and implementing CrudRepository
  3. Generated Implementation in OwnerServiceMap (works well)
  4. Coded AbstractMapService with methods
  5. Created PetServiceMap new file - extended with AbstractMapService and implementing CrudRepository
  6. Generated Implementation in PetServiceMap (type is T not the type in the generics which was Pet)

 

OwnerServiceMap (while leaving the AbstractMapService uncoded - skeletal) -- produced the correct entities.

AbstractMapService (But when coded in)

generating PetServiceMap, and that's where the bug surfaced!!! -- generic type T not the real type

I need to submit this!!!

 

Thanks

 

 

 

1
3 comments
Avatar
Permanently deleted user

thank you guy!

0

BTW, you could use Help - Submit Bug Report and IDE will navigate to the proper resource.

1

Please sign in to leave a comment.