Using enum singleton coding pattern in a Domino Java Agent

后端 未结 2 1101
太阳男子
太阳男子 2021-01-22 00:40

So this is the very simplified Lotus Domino Java agent code I am trying to run...

import lotus.domino.*;

enum SingletonTest { 
    INSTANCE;

    public void he         


        
2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-22 01:17

    1. Open the Designer preferences and select the Compiler settings.

      Preferences

    2. Click on "Configure Project Specific Settings..."

    3. Select your project and click OK.

      select project

    4. Change the settings to 1.6 and default compliance settings.

      compliance settings

    5. Click OK. You should get a few prompts, select the default. Then open and save your agent again to recompile it.

    Using your code I did this and ran it without error.

提交回复
热议问题