Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353782 - JavaObject properties not honored
Summary: JavaObject properties not honored
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-03 11:08 EDT by Justin Spadea CLA
Modified: 2017-02-23 14:18 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Spadea CLA 2011-08-03 11:08:15 EDT
package pkg;
externaltype myET type JavaObject{packageName="etPkg", javaName="etName"}
	function test();
end


Use this in a function:
e myET{};

And the generated code is:
import pkg.myET;
...
myET e = null;
e = new myET();


It should be using the qualified name "etPkg.etName" not "pkg.myET".
Comment 1 Jeff Douglas CLA 2011-08-05 14:43:17 EDT
Logic has been added, however the javaName annotation for functions is not allowed in the language. I have opened a defect against the language and will do the function alias when that has been done.

package x;

externaltype myET type JavaObject{packageName="etPkg", javaName="etName"}
    function test();
    function alias(){javaName="handler"};
end

program c2
e myET{};
	function main()
		e.alias();
		i int = 14;
	end
end
Comment 2 Justin Spadea CLA 2011-09-15 11:27:18 EDT
Verified