facebook

Missing full JDK17 support

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #695479 Reply

    Visionet GmbH
    Participant

    MyEclipse 2022 offers the ability to use JDK17 preview features but not full JDK 17
    Code that compiles with all OpenJDK-Versions 17 shows some errors in Java Editor.
    E.g. using a functin definitio in a constructor like

    private final int someVar;
    
    public MaClass(String parentPanel, ...) {
    	super(parentPanel, title, lazyLoadText, model, 
    		(tab) -> {
    			String s = null;
    			if (someVar ...) {
    				...
    			}
    			return s;
    		}
    	);
    }

    The built-in compiler says “Cannot refer to ‘this’ nor ‘super’ while explicitly invoking a constructor”

    #695510 Reply

    support-swapna
    Moderator

    Hi,

    Sorry that you are seeing this issue.
    The concern here seems to be the use of lambdas in the super call.
    Please see the existing bug reports for Eclipse here and here. This is fixed in the newer release of Eclipse and the fix should be available when we next update MyEclipse to base Eclipse 4.25 version.

    Apologies for inconvenience caused. Do let us know if you have any further questions.

    –Swapna
    Genuitec Support

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Missing full JDK17 support

You must be logged in to post in the forum log in