Bug 152678 ParameterDialog cannot be build if compiler level is 5.0
Not sure if source is trying to be 1.5 supportive, however....using todays source head. If I try to build the source using the 1.5 JDK the class org.eclipse.birt.report.designer.ui.dialogs.ParameterDialog; has he following compiler errors: - The Method compareTo(BigDecimal) in the type BigDecimal is not applicable for the arguments (Object) - The Method compareTo(Double) in the type Double is not applicable for the arguments (Object) - The Method compareTo(Integer) in the type Integer is not applicable for the arguments (Object) if you look at method private boolean isEqual( String value1, String value2 ) There is the following comparisons that the compiler does not like. if ( v1 instanceof Double && v2 instanceof Double ) { return ( (Double) v1 ).compareTo( v2 ) == 0; } if ( v1 instanceof BigDecimal && v2 instanceof BigDecimal ) { return ( (BigDecimal) v1 ).compareTo( v2 ) == 0; } if ( v1 instanceof Integer && v2 instanceof Integer ) { return ( (Integer) v1 ).compareTo( v2 ) == 0; }
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ParameterDialog.java
errorMessageLine.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
	}
	private void createMoreOptionSection( Composite composite )
	{
		Group moreOptionSection = new Group( composite, SWT.NONE );
		moreOptionSection.setText( GROUP_MORE_OPTION );
		moreOptionSection.setLayout( new GridLayout( 2, false ) );
		moreOptionSection.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
		createLabel( moreOptionSection, LABEL_HELP_TEXT );
		helpTextEditor = new Text( moreOptionSection, SWT.BORDER );
		helpTextEditor.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
		createLabel( moreOptionSection, LABEL_FORMAT );
		Composite formatSection = new Composite( moreOptionSection, SWT.NONE );
		formatSection.setLayout( UIUtil.createGridLayoutWithoutMargin( 2, false ) );
		formatSection.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
		formatField = new Text( formatSection, SWT.BORDER
				| SWT.SINGLE
				| SWT.READ_ONLY );
		formatField.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
		changeFormat = new Button( formatSection, SWT.PUSH );
		changeFormat.setText( BUTTON_LABEL_CHANGE_FORMAT );
		setButtonLayoutData( changeFormat );
		changeFormat.addSelectionListener( new SelectionAdapter( ) {
			public void widgetSelected( SelectionEvent e )
			{
				popupFormatBuilder( true );
			}
		} );
		createLabel( moreOptionSection, null );
		Group previewArea = new Group( moreOptionSection, SWT.NONE );