harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Weldon Washburn" <weldon...@gmail.com>
Subject [drlvm][kernel_classes] public variables of Thread.java -- does it make sense to make them private?
Date Sat, 03 Mar 2007 14:41:35 GMT
It looks like several fields in kernel_classes/javasrc/java/lang/Thread.java
are accessible to other kernel classes. While kernel_classes are "trusted
code", it would help modularity&reliability to make them private and supply
the necessary getters/setters.

A list of the fields:

ThreadGroup group;
boolean started;
boolean isAlive;
Object lock;
static ThreadGroup systemThreadGroup;
static ThreadGroup mainThreadGroup;


-- 
Weldon Washburn
Intel Enterprise Solutions Software Division

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message