Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 26722 Details for
Bug 108488
@Aspect("perthis(this(Person))")
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
the Person class which is instrumented by ArbeitszeitAspekt
Person.java (text/plain), 1.50 KB, created by
Oliver
on 2005-08-31 13:34:54 EDT
(
hide
)
Description:
the Person class which is instrumented by ArbeitszeitAspekt
Filename:
MIME Type:
Creator:
Oliver
Created:
2005-08-31 13:34:54 EDT
Size:
1.50 KB
patch
obsolete
>package verwaltung; > > > >/* > * Created on Jul 5, 2004 > */ > >/** > * @author oliver > * @since Jul 5, 2004 > */ >public class Person implements Runnable { > > public String name; > private int alter; > > // folgendes Attribute sollte eine Warnung zur Folge haben > private java.sql.Date geboren = new java.sql.Date(0); > > public Person(String name) { > this.name = name; > //java.sql.DriverManager.getLogWriter(); > } > > public void setName(String name) { > this.name = name; > } > > public void setAlter(int i) { > this.alter = i; > } > > public String getName() { > return this.name; > } > > public String toString() { > return this.name; > } > > public void run() { > arbeite(); > } > > public void arbeite() { > System.out.println(this.getName() + " stempelt ein."); > try { > Thread.sleep(3000); > } catch (InterruptedException e) { > System.err.println("beim Schlafen gestoert\n" + e); > } > System.out.println(this.getName() + " stempelt aus."); > } > > public static void main(String[] args) throws InterruptedException { > Person[] team = { > new Person("Asterix"), > new Person("Obelix"), > new Person("Majestix") }; > team[1].setName("Idefix"); > for (int i = 0; i < team.length; i++) { > Thread thread = new Thread(team[i]); > thread.start(); > Thread.sleep(1000); // wait a second > } > } > >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 108488
:
26721
| 26722