Skip to content

Grails method-decorating transforms impact type inferencing and syntax highlighting #712

@kszymko

Description

@kszymko

Using:

import grails.gorm.transactions.NotTransactional
import grails.gorm.transactions.Transactional

I have groovy services (*Service) classes annotated on class level with @transactional.
Whenever it is commented syntax highlighting works OK (ctrl click on method also works).

If I enable @transactional on class level syntax stops working.
If I mark any method with @NotTransactional then tokens in this method are colored just fine.
Is it because Transactional has:

@GormASTTransformationClass( "org.grails.datastore.gorm.transactions.transform.TransactionalTransform")

If so, why after creating my own TransactionalMy annotation (copy of Transactional) and annotating my services with it - it lets syntax highlighting work fine?

See screenshots and the difference on simple class:

txoff
txon

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions