Modify

Opened 16 years ago

Closed 16 years ago

#770 closed defect (fixed)

Wrong variable assignment in org.openstreetmap.josm.io.MyHttpHandler

Reported by: krasnoj@… Owned by: framm
Priority: major Milestone:
Component: Core Version:
Keywords: wrong variable assignment Cc: krasnoj@…

Description

Hi!

I think the function:
public MyHttpHandler(String proxy, int port) {

proxy = proxy;
proxyPort = port;

}

is wrong. The right code should be:
public MyHttpHandler(String proxy, int port) {

this.proxy = proxy;
this.proxyPort = port;

}

If you write proxy=proxy, this assignment has no effect to the class variable proxy. Instead this.proxy=proxy overwrites the class variable (instead the function argument) like it is wantet.

Attachments (0)

Change History (1)

comment:1 by anonymous, 16 years ago

Resolution: fixed
Status: newclosed

Closed in r655.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain framm.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.