jaxb-codemodel icon indicating copy to clipboard operation
jaxb-codemodel copied to clipboard

A construct for "Synchronized block" needed

Open glassfishrobot opened this issue 14 years ago • 2 comments

A construct like synchronized(this.myFieldVar)

{ // do something }

seems to be possible only by body()/or whatever block/.directStatement("synchronized(this.myFieldVar)"); JBlock blk=new Block(true, true); // ... body.add(block);

While one can live with, it becomes a bit unpleasant in case the name of the JFieldVar needs to be changed.

Affected Versions

[2.4]

glassfishrobot avatar Aug 09 '11 13:08 glassfishrobot

Reported by no0ne

glassfishrobot avatar Aug 09 '11 13:08 glassfishrobot

This issue was imported from java.net JIRA CODEMODEL-6

glassfishrobot avatar Apr 24 '17 07:04 glassfishrobot