Community
Participate
Working Groups
http://www.ott.oti.com/uvm/OTIIBM/numbat/Testing/JCK- 14/tests/lang/STMT/stmt100/stmt10003/stmt10003.html - POSITIVE TEST Test case: javac 1.4: OK javac 1.3: stmt10003.java:15: unreported exception <null>; must be caught or declared to be thrown throw null; ^ 1 error Eclipse compiler: ---------- 1. ERROR in stmt10003.java (at line 15) throw null; ^^^^^^^^^^^ Cannot throw null ---------- NOTES: OT (18/09/2001 10:01:18 AM) See http://developer.java.sun.com/developer/bugParade/bugs/4142896.html OT (19/09/2001 11:44:20 AM) Removing the two lines that reports the problem is the binding is NullBinding is good enough to fix the PR: Replace this method inside ThrowStatement with the following code: [ public void resolve(BlockScope scope) { exceptionType = exception.resolveTypeExpecting(scope, scope.getJavaLangThrowable()); exception.implicitWidening(exceptionType, exceptionType); }]
Changed the type resolution code to allow it if 1.4 compliant. Fixed