Community
Participate
Working Groups
This invalid code: public class VoidTest { void b(Object o) {} void a() { b(a()); } } compiles fine in Eclipse when using 5.0 compliance level. Javac gives this error: javac -source 1.5 -target 1.5 VoidTest.java VoidTest.java:6: 'void' type not allowed here b(a()); ^ 1 error Eclipse 3.1M4 Linux/GTK
*** This bug has been marked as a duplicate of 81971 ***