Bug 33949 - DOM: assert statement has wrong length
Summary: DOM: assert statement has wrong length
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.1 RC2   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 33533
  Show dependency tree
 
Reported: 2003-03-06 04:37 EST by Dirk Baeumer CLA
Modified: 2003-03-06 10:10 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Baeumer CLA 2003-03-06 04:37:42 EST
RC1

In the example below the assert statement has the length 28. It should be 29 
since a statement should include the trailing ";". 

public class Assert {
	public static final void notNull(Object ref, String message)
	{
		assert ref != null : message;
	}
	
	void method(String param1, String param2, String param3)
	{
		Assert.notNull(param1, "param1 != null");
		Assert.notNull(param2, "param2 != null");
		Assert.notNull(param3, "param3 != null");
	}
}
Comment 1 Dirk Baeumer CLA 2003-03-06 04:38:32 EST
Philippe, please let me know if you can fix this for RC2. Bug 33533 depends on 
it.
Comment 2 Olivier Thomann CLA 2003-03-06 08:55:16 EST
I am investigating.
Comment 3 Olivier Thomann CLA 2003-03-06 09:44:44 EST
Fixed and released in 2.1 stream.
Regression tests added.
Comment 4 Olivier Thomann CLA 2003-03-06 09:47:28 EST
Change milestone.
Comment 5 Philipe Mulet CLA 2003-03-06 09:48:02 EST
Dirk - the fix will available in RC2.
Comment 6 Dirk Baeumer CLA 2003-03-06 10:10:29 EST
Verified