| Summary: | Invalid assignment operators detected | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Robbert Jan Grootjans <eclipsebugs> |
| Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> |
| Status: | CLOSED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 3.1 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 2000 | ||
| Whiteboard: | |||
|
Description
Robbert Jan Grootjans
This code is legite in Java. as seen in the arithmetic operator tutorial of sun (http://java.sun.com/docs/books/tutorial/java/nutsandbolts/arithmetic.html ) The addition of any primative type with a double type results in a double. This therefore not be assigned to a double (In reply to comment #1) > This code is legite in Java. Pls read JLS 15.26.2. The tutorial doesn't mention special rules for compound assignments. It's a lot of fun to see the sun compiler struggle with it's own specification. Thanks for your time |