Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8417727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:08:13+00:00 2026-06-10T02:08:13+00:00

today I had a very embarrassing experience. I just called Push.payload() method like this.

  • 0

today I had a very embarrassing experience.
I just called Push.payload() method like this.

Push.payload(payload, keystore, password, production, token);

(In fact, this code snippet is part of javaPNS)
And Push.payload() is just

public static PushedNotifications payload(Payload payload, Object keystore, String password, boolean production, Object devices) throws CommunicationException, KeystoreException {
    return sendPayload(payload, keystore, password, production, devices);
}

production value was true when I called Push.payload(), and there is no assignment except its declaration.

private static final boolean production = true;

Of course I checked that its value is true before step in Push.payload() in debug mode. HOWEVER, in Push.payload() method, the production value turns into false!!

I don’t know what happened. Please explain why the production value changed to false.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T02:08:14+00:00Added an answer on June 10, 2026 at 2:08 am

    the “production” variable that you see in Debug Module is the parameter of method “Push.payload()” in fact.
    if the name of the static variable is same as the name of parameter in the method. jvm regard it as a parameter of the method in priority.
    so, I recommand you user Upper case like ‘PRODUCTION’. and you’d better use
    Xxxxx.PRODUCTION
    this style is better for reading.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I had an interview today which involved this very question and in order to
I had a wild thought today. I've been discovering that my users like my
I had an interview today and every thing was going very good, but then
Today we had a very heated discussion at work regarding the availability of a
I came across this problem via a colleague today. He had a design for
Today I had a nice opportunity from my manager to propose new technologies to
Today I had an interview for a developer job and I had to do
Today I had a look at what Rasmus described here http://toys.lerdorf.com/archives/57-ZeroMQ-+-libevent-in-PHP.html using ZeroMQ together
I came across a table of freq. counts today I had to expand into
I'm running Emacs 22.3 in Windows. Earlier today I had gdb working within Emacs

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.