Skip to content

Fix static variables not being initialized in derived class HttpWebRequest#88

Merged
josesimoes merged 1 commit into
nanoframework:developfrom
RalfMengwasser:develop
Apr 21, 2020
Merged

Fix static variables not being initialized in derived class HttpWebRequest#88
josesimoes merged 1 commit into
nanoframework:developfrom
RalfMengwasser:develop

Conversation

@RalfMengwasser
Copy link
Copy Markdown
Contributor

Description

Static variables were not initialized properly.

Solution

Add initialize function that can be called from derived class and from static constructor, as there is no guarantee that the static constructor gets called before the derived class uses base class functions.

Add call to initialize to HttpWebRequest constructor as it uses base class functions afterwards.

@nfbot
Copy link
Copy Markdown
Member

nfbot commented Apr 20, 2020

Hi @RalfMengwasser,

I'm nanoFramework bot.
Thank you for your contribution!

A human will be reviewing it shortly. 😉

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 20, 2020

CLA assistant check
All committers have signed the CLA.

@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Copy Markdown
Member

@josesimoes josesimoes left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks.

@josesimoes josesimoes merged commit 14f9dfe into nanoframework:develop Apr 21, 2020
@josesimoes
Copy link
Copy Markdown
Member

@RalfMengwasser next time please don't override the PR template. It's there for a reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants