Community
Participate
Working Groups
Using 20020125: Test case: [import java.awt.Frame; public class X2 { public Frame cancel() { Frame sharedOwnerFrame = null; if (sharedOwnerFrame == null) { sharedOwnerFrame = new Frame() { public synchronized void dispose() { } }; } return sharedOwnerFrame; } }] Compile the following test case. The compiler returns: ---------- 1. ERROR in d:/tmp/X2.java (at line 8) sharedOwnerFrame = new Frame() { public synchronized void dispose() { } }; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The operator unknown operator is undefined for the argument type(s) java.awt.Frame, <anonymous subclass of java.awt.Frame> ---------- Compiled 14 lines in 2463 ms (5.6 lines/s) 1 problem (1 error) Javac 1.3.1 and 1.4RC compile it fine.
Fixed *** This bug has been marked as a duplicate of 8697 ***