Bug 176436 Charts Imported from Libraries do not update when libraries change
During a live presentation of BIRT at EclipseCon, we came across a rather embarassing issue. When charts are included in a library, and imported into a report design from a library, any changes to the library instance of the chart do not reflect in the report itself.
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/library/ReloadLibraryTest.java
assertEquals( LibraryException.DESIGN_EXCEPTION_LIBRARY_NOT_FOUND,
					e.getErrorCode( ) );
		}
		String libFilePath = (String) filePaths.get( 1 );
		openLibrary( libFilePath, false );
		File f = new File( libFilePath );
		if ( f.exists( ) )
			f.delete( );
		designHandle.reloadLibrary( libraryHandle );
		assertNull( designHandle.findElement( "table1" ).getExtends( ) ); 
		assertNotNull( designHandle
				.findElement( "table1" ).getStringProperty( DesignElementHandle.EXTENDS_PROP ) ); 
		InputStream fis = getResourceAStream( INPUT_FOLDER
				+ "LibraryToReload_errors.xml" ); 
		FileOutputStream fos = new FileOutputStream( f );
		byte[] data = new byte[10000];
		fis.read( data );
		fos.write( data );
		fis.close( );
		fos.close( );
		try
		{
			designHandle.reloadLibrary( libraryHandle );
			fail( );
		}
		catch ( LibraryException e )
		{
			save( );
		}
		assertTrue( compareFile( "DesignToReloadLibrary_golden_1.xml" ) );