Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354408 - Generated Java doesn't include ExternalType's class name
Summary: Generated Java doesn't include ExternalType's class name
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-10 12:03 EDT by Kathy Carroll CLA
Modified: 2017-02-23 14:18 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kathy Carroll CLA 2011-08-10 12:03:00 EDT
============ EDT CODE ================
package explore;
program driver type BasicProgram {}
	function main() 
		fileDirectory String = "C:\\temp";
		myfile File  = new File(fileDirectory);
 	end
end

//Put EGL Source File Contents Here
ExternalType File type JavaObject {packageName = "java.io", javaName = "File"}
	 constructor (pathname String In);
	 function getAbsolutePath() returns (String);
	 function createNewFile() returns (boolean);
	 function mkdirs() returns (boolean);
	 function exists() returns (boolean);
end

================  JAVA CODE ================
package explore;
import org.eclipse.edt.javart.resources.*;
import org.eclipse.edt.javart.*;
import org.eclipse.edt.runtime.java.egl.lang.EglAny;
import java.io.;
import org.eclipse.edt.runtime.java.egl.lang.EString;
import java.lang.String;
public class driver extends ProgramBase {
	private static final long serialVersionUID = 10L;
	
	public static StartupInfo _startupInfo() {
		return new StartupInfo( "driver", "explore/driver.properties", false );
	}
	public static void main(String... ezeargs) throws Exception {
		StartupInfo info = _startupInfo();
		info.setArgs( ezeargs );
		RunUnit ru = new RunUnitBase( info );
		ru.start( new driver( ru ), ezeargs );
		ru.exit();
	}
	public driver( RunUnit ru ) {
		super( ru );
		ezeInitialize();
	}
	public void ezeInitialize() {
	}
	public void main(java.util.List<String> ezeargs) {
		String fileDirectory = Constants.EMPTY_STRING;
		fileDirectory = "C:\\\\temp";
		java.io. myfile = null;
		myfile = new java.io.(fileDirectory);
	}
}
Comment 1 Matt Heitz CLA 2011-08-11 11:14:20 EDT
I made the fix in ExternalTypeTemplate.
Comment 2 Kathy Carroll CLA 2011-08-12 08:15:47 EDT
Verified
Comment 3 Lisa Lasher CLA 2011-10-11 16:08:09 EDT
Closing this defect.