Skip to Main Content

Embedded Technologies

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Error boolean cannot be derefrenced?

843849Mar 1 2005
Error boolean cannot be derefrenced on the toString methods for:

public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) {
if ((changeSupport != null) && (oldValue != newValue)) {
String oValue = (oldValue.toString());
String nValue = newValue.toString();
changeSupport.firePropertyChange(propertyName, Boolean.valueOf(oValue), Boolean.valueOf(nValue));
}
}

If your wondering why i try to do it his way; For some strange reason the Boolean.valueOf(java.lang.boolean); method has been removed from Java.;ang.boolean in PP, so only Boolean.valueOf(java.lang.String) can be used.

Any Ideas?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 29 2005
Added on Mar 1 2005
0 comments
112 views