Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-core-dev] Compiler bug: Assigning to 'this'

David,

This bug is fixed in 3.0 M4. As a hint, you can see that the target
milestone for this bug was 3.0 M1.

Jerome



|---------+------------------------------>
|         |           "David W."         |
|         |           <weitzman_d@yahoo.c|
|         |           om>                |
|         |           Sent by:           |
|         |           jdt-core-dev-admin@|
|         |           eclipse.org        |
|         |                              |
|         |                              |
|         |           10/12/2003 09:08 PM|
|         |           Please respond to  |
|         |           jdt-core-dev       |
|         |                              |
|---------+------------------------------>
  >-----------------------------------------------------------------------------------------------------------------------|
  |                                                                                                                       |
  |       To:       jdt-core-dev@xxxxxxxxxxx                                                                              |
  |       cc:                                                                                                             |
  |       Subject:  [jdt-core-dev] Compiler bug: Assigning to 'this'                                                      |
  |                                                                                                                       |
  >-----------------------------------------------------------------------------------------------------------------------|




Someone has noticed that assigning to 'this' compiles
successfully in Eclipse 2.1.1. It's a more general
case of
https://bugs.eclipse.org/bugs/show_bug.cgi?id=38143

I'd prefer not to download the latest builds to see if
the fix for 38143 also covers the case of a non-null
assignment, I figured it would be best to simply make
a note on the mailing list.

Example code:

class MyClass {
public void instanceMethod() {
  this = new MyClass();
}
}

The code above compiles, and decompiling the output
shows that instanceMethod() actually contains no
instructions.

David Weitzman

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
_______________________________________________
jdt-core-dev mailing list
jdt-core-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/jdt-core-dev







Back to the top