Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #17095

Re: Accessing a thread

From "markspace" <markspace@1:261/38.remove-yy0-this>
Subject Re: Accessing a thread
Message-ID <501C156A.56054.calajapr@time.synchro.net> (permalink)
Newsgroups comp.lang.java.programmer
References <501C156A.56053.calajapr@time.synchro.net>
Date 2012-08-03 18:54 +0000
Organization tds.net

Show all headers | View raw


  To: Dirk Bruere at NeoPax
From: markspace <-@.>

On 8/3/2012 8:52 AM, Dirk Bruere at NeoPax wrote:

> public static Thread txToLanThreadRef;


Static variables like this are not considered best practice.  Consider some 
alternatives, including factories, a context object, or some sort of generic 
message system.


> However, when I try to access it elsewhere, this does not work
>
> controller.txToLanThreadRef.


"Does not work" is a little unspecific.  What error/problem do you get?
  Can you make a short, complete, compilable example that duplicates the
problem?

It should work, must work, even, according to the Java programming language.  
If there's an issue, it must be with the way you are using it.  Please show us.

--- BBBS/Li6 v4.10 Dada-1
 * Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: Accessing a thread "Dirk Bruere at NeoPax" <dirk.bruere.at.neopax@1:261/38.remove-yy0-this> - 2012-08-03 18:54 +0000
  Re: Accessing a thread "markspace" <markspace@1:261/38.remove-yy0-this> - 2012-08-03 18:54 +0000

csiph-web