Community
Participate
Working Groups
1.Create an EGL project. 2.Add a service. 3.Open the egldd create a new target project. 4.Press the deploy button in the egldd editor. No java files are copied. The problem is EclipseUtilities.getJavaSourceFolderName only returns a source folder for an EGL project. The target project is a dynamic web project so you need to get the java source folder from it. You may need to do something like: if(EclipseUtilities.getJavaSourceFolderName == null || EclipseUtilities.getJavaSourceFolderName.isEmpty()){ IJavaProject javaProject = JavaCore.create(project); if(javaProject != null && javaProject.exists()){ int segments = new Path(project.getName()).segmentCount(); for( IPackageFragmentRoot root : javaProject.getAllPackageFragmentRoots()){ if(root.getKind() == IPackageFragmentRoot.K_SOURCE){ name = root.getPath().removeFirstSegments(segments).toOSString(); break; } } }
This is resolved by the change for bug 357390. Thanks.
This defect has been fixed.
I thought this was a different bug that I opened. I am marking it as resolved again so that Joe can verify and close.
verified
Created attachment 203528 [details] Testcase.
In the attached testcase, the constructor for Span cannot be found at runtime. This was found in the RUI Technical Sample, but I have worked around it for now.
Created attachment 203579 [details] Patch I think this is an issue in Egl2Mof, here is a patch, need Paul review.
Hi Paul, Please review the patch. Thanks. Please see Brian's comment in comment 6. You can download Brian's test case, and deployment it. Thanks.
Re-assigning to Paul temporarily so that he can review the patch proposed by Yun Feng.
I have fixed this with a change to IRUtils. The problem is that the NewExpression does not directly hold onto the type that is being "newed". Because of this, the visitor is not getting to the referenced Part. I have added an explicit visit for NewExpression to force the type to be loaded.