Uploaded image for project: 'PUBLIC - Liferay IDE'
  1. PUBLIC - Liferay IDE
  2. IDE-1406

Failed to create hook class in default java package when new liferay portal properties hook

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.1.0
    • Component/s: Wizards, Wizards > Hook
    • Labels:
      None
    • Environment:
      Liferay IDE 2.0.1.201401241002-ga2

      Description

      • lanuch eclipse
      • new liferay hook project
      • new liferay hook > checked 'Portal properties' > next
      • Add actions > select an event
      • press New for Class
      • for Classname enter 'MyClass.' and leave the 'Java package' empty then 'Create' > OK > Finish
      • will have error about Invalid name specified in error log

      Error messages:
      Invalid name specified: .java

      Java Model Exception: Java Model Status [Invalid name specified: .java]
      at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:784)
      at org.eclipse.jdt.internal.core.PackageFragment.createCompilationUnit(PackageFragment.java:144)
      at org.eclipse.jst.j2ee.internal.common.operations.NewJavaClassOperation.createJavaFile(NewJavaClassOperation.java:233)
      at org.eclipse.jst.j2ee.internal.common.operations.NewJavaClassOperation.doExecute(NewJavaClassOperation.java:150)
      at org.eclipse.jst.j2ee.internal.common.operations.NewJavaClassOperation.execute(NewJavaClassOperation.java:879)
      at com.liferay.ide.hook.ui.wizard.NewEventActionClassDialog.okPressed(NewEventActionClassDialog.java:295)
      at org.eclipse.jface.dialogs.Dialog.buttonPressed(Dialog.java:476)
      at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:628)

      Same error occurs when new liferay service hook

        Attachments

          Activity

            People

            Assignee:
            simon.jiang Simon Jiang
            Reporter:
            yanan.yuan Yanan Yuan(Ashley Yuan)
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              7 years, 6 weeks, 5 days ago

                Packages

                Version Package
                2.1.0