Community
Participate
Working Groups
Screenshot attached
Created attachment 219839 [details] Screenshot of the problem
The problem seems to be here: IStatus org.eclipse.ide4edu.javalite.constructors.NewJavaClassConstructor.getStatus() at Line 247: status = JavaConventions.validateJavaTypeName(className, sourceLevel, complianceLevel); status should be "ClassName is not a valid identifier" but it is returnning "A package name must not be empty"
Rafi, are you interested/able to submit a patch? I ask because this project exists for two reasons: (1) to provide an IDE that is crafted specifically for students, and (2) to provide a entry point for students/others to participate in the open source experience. Much of the current code base has been contributed by students. I can assist. Or, if you just want the bug fixed, I can do that too.
I tried out this project for open source experience, and I'm interested in submitting patch too, but unfortunately I'm not able to this yet :( This project seems to be a bit hard for me, specially for extensive use of org.eclipse libraries and SWT libraries, I'm not familiar with these. But still I'm trying to understand the main workflow. I'll be grateful if you provide some guidance what things I need to learn to contribute in this project, and what do you need most i.e. documentation, bug-fix or code. It may take months for me to actively join, but I'll be happy to help at any way :) And for this particular bug, I think the problem lies with this method JavaConventions.validateJavaTypeName(className, sourceLevel, complianceLevel); I found it is a method of org.eclipse.jdt.core package, not directly associated with ide4edu. May be we are using an old version... ?
Created attachment 219956 [details] A similar problem, invalid warning in the create class window
I read the documentation of org.eclipse.jdt.core.JavaConventions and I think I've found the problem. JavaConventions.validateJavaTypeName(className, sourceLevel, complianceLevel) method is used here, but I think it should be JavaConventions.validateClassFileName(String id, String sourceLevel, String complianceLevel). But just changing the method name is creating some other problems. But I hope I can solve it and submit a patch :)
Created attachment 219965 [details] Patch This patch should work. I didn't take part in any open source project before, so please let me know if I did something wrong.. I've found a similar minor bug, I hope I can fix that too.