[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] jdt code bug

package org.eclipse.jdt.internal.ui.wizards.TypePage
 
line 1146
 
 protected IStatus typeNameChanged() {
  StatusInfo status= new StatusInfo();
  String typeName= getTypeName();
  // must not be empty
  if ("".equals(typeName)) {
   status.setError(getResourceString(ERROR_TYPE_ENTERNAME));
   return status;
  }
  if (typeName.indexOf('.') != -1) {
   status.setError(getResourceString(ERROR_TYPE_QUALIFIEDNAME));
   return status;
  }
  IStatus val= JavaConventions.validateJavaTypeName(typeName);
  if (val.getSeverity() == IStatus.ERROR) {
   status.setError(getFormattedString(ERROR_TYPE_INVALIDNAME, val.getMessage()));
   return status;
  } else if (val.getSeverity() == IStatus.ERROR) {
 
 
this last one should be
  } else if (val.getSeverity() == IStatus.WARNING) {