Community
Participate
Working Groups
I20071113-0800 Given: package test; public class Test { public static interface IFace {} public static class MyFace implements IFace {} public static class HisFace implements IFace {} public static void main(String[] args) { IFace[] faces= new MyFace[10]; faces[0]= new HisFace(); } } 1. Run as java application Is: Exception in thread "main" java.lang.ArrayStoreException: test.Test$HisFace at test.Test.main(Test.java:10) Should: A compiler warning (error)(potential programming problem) should be generated at new MyFace[10] telling me that I should use IFace instead. I wonder how many such bugs we have...