Community
Participate
Working Groups
I20070322-1800 IType#getMethod(..) should not throw an AFE when the method name contains a dot. It should just create a method handle for a method that does not exist. From bug 178190: org.eclipse.core.runtime.AssertionFailedException: assertion failed: at org.eclipse.core.runtime.Assert.isTrue(Assert.java:109) at org.eclipse.core.runtime.Assert.isTrue(Assert.java:95) at org.eclipse.jdt.internal.core.SourceMethod.<init>(SourceMethod.java:34) at org.eclipse.jdt.internal.core.SourceType.getMethod(SourceType.java:368) Same problem with BinaryMethod.
I think you should just remove the assertions. They're not spec'd, and removing them would allow our friends in bug 178190 to rerun JUnit tests more easily.
The fix is trivial and I agree that the assertion is not spec'd anywhere. Would you agree on this change for M7?
(In reply to comment #2) > The fix is trivial and I agree that the assertion is not spec'd anywhere. > Would you agree on this change for M7? ok for this change
Created attachment 65009 [details] Proposed patch
Released for 3.3 M7 in HEAD stream.
Thanks for fixing this promptly!
Verified for 3.3M7 by looking at the code of v_751