Community
Participate
Working Groups
The bug 346348 introduced an undesired behavior in the Java EE module wizards (i.e. new dynamic web project, new ejb project, etc) regarding the last EAR project used. In the past, the last EAR used to create a new dynamic web project was used as the EAR name the next time the new dynamic web project wizard was opened. But a flaw in the logic of the code for 346348 is causing that the last EAR name is completely ignored.
Created attachment 199835 [details] Proposed fix The fix consist in changing a wrong validation (use != instead of ==). I also set the IJ2EEModuleFacetInstallDataModelProperties.EAR_PROJECT_NAME property only when an EAR was selected, because if this property is set and the last EAR name is used, some important validation is bypassed, and the wizard shows the name of the last EAR used even if that project does not exist in the workspace.
Thanks looks good
Code committed to R3_2_maintenance and HEAD for 3.2.5, 3.3.1 and 3.4.