undefect. CWE-407 — 63 sites patched across 27 ecosystems
Authors: russell@unturf.com · brackishbert@gmail.com · foxhop.net · TimeHexOn.com Patches, unit tests, benchmarks, whitepaper, and outreach briefs. Public domain — no copyright claimed. Use freely.
This commit is contained in:
commit
0a580b313d
70422 changed files with 17213626 additions and 0 deletions
9
test/langtools/tools/javac/SynchronizedClass.java
Normal file
9
test/langtools/tools/javac/SynchronizedClass.java
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
/* @test /nodynamiccopyright/
|
||||
@bug 4037020 4785453
|
||||
@summary Verify that ClassModifier "synchronized" is not allowed.
|
||||
@author dps
|
||||
|
||||
@compile/fail/ref=SynchronizedClass.out -XDrawDiagnostics SynchronizedClass.java
|
||||
*/
|
||||
|
||||
public synchronized class SynchronizedClass { } // ERROR
|
||||
Loading…
Add table
Add a link
Reference in a new issue