My guess is that line 15 `this.resourceId = resour...
# announcements
My guess is that line 15
this.resourceId = resourceId
points to the same property. You are executing
so inside block
is an
and it shadows `Test`'s resource id property. If you type this code in Intellij Idea, you'll see a warning that
resourceId: Long
in line 13 is never used. But change the name in lines 13 and 15 and it should work, result of line 20 is - as I assume - a map