Bug 564515 - @PostConstruct not called (possible class schizophrenia)
Summary: @PostConstruct not called (possible class schizophrenia)
Status: CLOSED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.17   Edit
Hardware: PC Windows 10
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2020-06-21 09:48 EDT by Rolf Theunissen CLA
Modified: 2020-08-29 00:31 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rolf Theunissen CLA 2020-06-21 09:48:35 EDT
The E4 tools windows recently stopped working, that is, the window shows up but the widgets are not created.

I have traced it down to that @PostConstruct is not called. This is because the annotation being checked is a different class instance than the annotation defined on in the class. That is, they seem to be load by different classloaders.

Note that I am still running java 8.
Comment 1 Rolf Theunissen CLA 2020-06-21 09:49:42 EDT
With E4 tools, I mean the spies as provided by the E4 tools project.
Comment 2 Rolf Theunissen CLA 2020-06-21 10:34:30 EDT
works on:  I20200615-1800
broken on: I20200616-0620

Somehow this is broken by upgrading to the new annotations package.
Comment 3 Rolf Theunissen CLA 2020-06-22 06:24:50 EDT
Switching to Java 11 fixes the issue

AFAIK Java 11 will be a requirement, so closing this one.
Comment 4 Alexander Kurtakov CLA 2020-06-29 05:27:10 EDT
This should not have happened as the new javax.annotation requires Java 1.8 too. But as it works iwth Java 11 and we require it already it doesn't make sense to look into it more.
Comment 5 Thomas Schindl CLA 2020-06-29 07:15:47 EDT
i agree with Alex but the next problem will arise once the complete jakarta-namespace shift happend so probably in future we want to support jakarta... but that's another topic.