Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call Class.forName() within doPrivileged block from WASURLObjectFactoryFinder #7521

Conversation

joe-chacko
Copy link
Member

No description provided.

@joe-chacko joe-chacko added the release bug This bug is present in a released version of Open Liberty label May 14, 2019
@LibbyBot
Copy link

Code analysis and actions

DO NOT DELETE THIS COMMENT.
  • 1 product code files were changed.
  • Please describe in a separate comment how you tested your changes.

@joe-chacko
Copy link
Member Author

#build

@LibbyBot
Copy link

Your personal build request is at https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_8eCisHabEemWNMQzD7Qc1Q

Target locations of links might be accessible only to IBM employees.

@joe-chacko joe-chacko requested review from kristip17 and ngmr May 15, 2019 00:00
@joe-chacko joe-chacko force-pushed the assert-privileges-to-retrieve-object-factory-class branch from 56e9f44 to 0efd8bd Compare May 15, 2019 00:06
@LibbyBot
Copy link

} catch (ClassNotFoundException e) {
// auto-ffdc
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I build locally with Java11, it made me add a return on findFactory (I added a return null at the end).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks — an issue with my IDE prevented it flagging some errors. I found them in the build and resolved them.

@kristip17
Copy link
Contributor

I copied the changes locally so I can run the failing ldap_fat test (LDAPReferralTest). I had to make some changes to WASURLObjectFactoryFinder to get it to build -- I am building with Java11. Added review comments. After I made those changes, Java2 issue was resolved.

@joe-chacko joe-chacko force-pushed the assert-privileges-to-retrieve-object-factory-class branch from 0efd8bd to dcf743b Compare May 15, 2019 21:43
@joe-chacko joe-chacko force-pushed the assert-privileges-to-retrieve-object-factory-class branch from dcf743b to d66e01e Compare May 15, 2019 21:48
@joe-chacko
Copy link
Member Author

#build

@LibbyBot
Copy link

Your personal build request is at https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_T7btEHdTEemWNcQzD7Qc1Q

Target locations of links might be accessible only to IBM employees.

@LibbyBot
Copy link

@LibbyBot
Copy link

The build chackoj-7521-20190515-2200
https://wasrtc.hursley.ibm.com:9443/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_T7btEHdTEemWNcQzD7Qc1Q
completed successfully!


@FFDCIgnore(PrivilegedActionException.class)
static Constructor<? extends ObjectFactory> getConstructor(ClassLoader tccl, String className) throws Exception {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I build locally with Java11, it made me add finals on getConstructor variables.

@joe-chacko joe-chacko merged commit d80f5df into OpenLiberty:integration May 17, 2019
@joe-chacko joe-chacko deleted the assert-privileges-to-retrieve-object-factory-class branch May 17, 2019 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed release bug This bug is present in a released version of Open Liberty release:19008
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants