[concurrency-interest] ThreadFactory.newThread(Runnable) and user-defined Runnables?

Roman Elizarov elizarov at devexperts.com
Tue Dec 16 02:08:58 EST 2008


be>    class NamingThreadFactory implements ThreadFactory {
be> with the message: "The type NamingThreadFactory must implement the
be> inherited abstract method ThreadFactory.newThread(Runnable)"

You should add the keyword "abtract" here or implement a method
"newThread" as the compiler warning advises you to. Your NamedRunnable
class is legal because it is marked as "abstract".

See Java Language Specification, 3rd Edition, Item - abstract

Roman Elizarov

More information about the Concurrency-interest mailing list