Bug 12969

Summary: jacks - synchronized (void expression) should be rejected
Product: [Eclipse Project] JDT Reporter: Philipe Mulet <philippe_mulet>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 M5   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Philipe Mulet CLA 2002-04-08 05:38:19 EDT
Build 20020404

From jacks test suite:

tests/jls/blocks-and-statements/synchonized-statement

==== 14.18-expression-6  The type of the expression must be a
        reference  FAILED
==== Contents of test case:

    empty_main T1418e6 {
        synchronized (System.out.println()) {}
    }

---- Result was:
PASS
---- Result should have been:
FAIL
Comment 1 Philipe Mulet CLA 2002-04-08 05:38:36 EDT
Fixed.