Bug 148747 Design become invalid when I extend a masterpage from Library
The attachment contains a report file and a library file. Reproduce: 1. Deploy the library("lib"), and open the report. 2. Drag Masterpage("page1") from "lib" to report. 3. Reopen the report, it become invalid.
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/parser/ReportElementState.java
{
		DesignElement element = getElement( );
		
		try
		{
			String theID = attrs.getValue( DesignSchemaConstants.ID_ATTRIB );
			if ( !StringUtil.isBlank( theID ) )
			{
				
				long id = Long.parseLong( theID );
				if ( id < 0 )
				{
					handler
							.getErrorHandler( )
							.semanticError(
									new DesignParserException(
											new String[]{
													element.getIdentifier( ),
													attrs
															.getValue( DesignSchemaConstants.ID_ATTRIB )},
											DesignParserException.DESIGN_EXCEPTION_INVALID_ELEMENT_ID ) );
				}
				element.setID( id );
			}
		}
		catch ( NumberFormatException e )
		{
			handler
					.getErrorHandler( )
					.semanticError(