Bug 193259 Enhance about the process of java script and event handler.[08]
Description: Enhance about the conflict of java script and event handler. I have a case, I design a report with script data source and script dataset. Previously I wrote java script for dataset in script view and it works. Then I decided to use event handler to process script dataset, I wrote a java class to extends ScriptedDataSetEventAdapter and overwrite open and fetch methods. As I want to keep the script in script view, I just comment them by /**/. Run the report will throw Exception. I found it's caused by comments in script view. If I deleted them, the report works. I attached the report and java class.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/DtEScriptExecutor.java
/*******************************************************************************
 * Copyright (c) 2005 Actuate Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *  Actuate Corporation  - initial API and implementation
 *******************************************************************************/
package org.eclipse.birt.report.engine.script.internal;
import java.util.logging.Level;
import org.eclipse.birt.data.engine.script.JSMethodRunner;
import org.eclipse.birt.report.engine.api.EngineException;
import org.eclipse.birt.report.engine.api.script.IReportContext;
import org.eclipse.birt.report.engine.executor.ExecutionContext;
import org.eclipse.birt.report.engine.i18n.MessageConstants;
import org.mozilla.javascript.Scriptable;
public abstract class DtEScriptExecutor extends ScriptExecutor