Openbravo Issue Tracking System - Openbravo ERP | |||||||||||||||||||||||||||||
View Issue Details | |||||||||||||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||||||||||||
0036435 | Openbravo ERP | Z. Others | public | 2017-07-06 13:28 | 2017-09-21 16:49 | ||||||||||||||||||||||||
Reporter | alostale | ||||||||||||||||||||||||||||
Assigned To | markmm82 | ||||||||||||||||||||||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||||||||||||||||||||||
Status | closed | Resolution | fixed | ||||||||||||||||||||||||||
Platform | OS | 5 | OS Version | ||||||||||||||||||||||||||
Product Version | |||||||||||||||||||||||||||||
Target Version | Fixed in Version | 3.0PR17Q4 | |||||||||||||||||||||||||||
Merge Request Status | |||||||||||||||||||||||||||||
Review Assigned To | aferraz | ||||||||||||||||||||||||||||
OBNetwork customer | |||||||||||||||||||||||||||||
Web browser | |||||||||||||||||||||||||||||
Modules | Core | ||||||||||||||||||||||||||||
Support ticket | |||||||||||||||||||||||||||||
Regression level | |||||||||||||||||||||||||||||
Regression date | |||||||||||||||||||||||||||||
Regression introduced in release | |||||||||||||||||||||||||||||
Regression introduced by commit | |||||||||||||||||||||||||||||
Triggers an Emergency Pack | No | ||||||||||||||||||||||||||||
Summary | 0036435: unlikely argument type warnings | ||||||||||||||||||||||||||||
Description | Compiling with ecj >= 3.13 (ie. using Eclipse Oxygen) some "unlikely argument" warnings can be found in code. | ||||||||||||||||||||||||||||
Steps To Reproduce | 1. Open openbravo with eclipse oxygen 2. Import standard openbravo preferences 3. Compile -> check warns: # Eclipse Compiler for Java(TM) v20170516-1929, 3.13.0, Copyright IBM Corp 2000, 2015. All rights reserved. ---------- 2. INFO in /home/alostale/ws/projects/license/openbravo/src/org/openbravo/common/datasource/StockReservationPickAndEditDataSource.java (at line 1682) if (orderline != null && !"".equals(orderline)) { ^^^^^^^^^ Unlikely argument type for equals(): OrderLine seems to be unrelated to String ---------- ---------- 3. WARNING in /home/alostale/ws/projects/license/openbravo/src/org/openbravo/costing/LCCostMatchFromInvoiceHandler.java (at line 200) localIl.getLandedCostCostList().remove(matchToRemove); ^^^^^^^^^^^^^ Unlikely argument type LCMatched for remove(Object) on a Collection<LandedCostCost> ---------- ---------- 4. INFO in /home/alostale/ws/projects/license/openbravo/src/org/openbravo/erpCommon/ad_forms/ProductInfo.java (at line 327) if (_qty == null || "".equals(_qty)) { ^^^^ Unlikely argument type for equals(): BigDecimal seems to be unrelated to String ---------- ---------- 5. INFO in /home/alostale/ws/projects/license/openbravo/src/org/openbravo/erpCommon/ad_forms/DocFINReconciliation.java (at line 973) .equals(getAccountBPartner(bpartnerId, as, isReceipt, true, conn))) { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Unlikely argument type for equals(): Account seems to be unrelated to String ---------- ---------- 6. INFO in /home/alostale/ws/projects/license/openbravo/src/org/openbravo/erpCommon/ad_callouts/SL_InOut_BPartner.java (at line 244) if ((!bpartner.equals("")) ^^ Unlikely argument type for equals(): String seems to be unrelated to BusinessPartner ---------- ---------- 7. INFO in /home/alostale/ws/projects/license/openbravo/src/org/openbravo/erpCommon/ad_process/ConvertQuotationIntoOrder.java (at line 284) if (!"".equals(bdPriceList) && bdPriceList != null ^^^^^^^^^^^ Unlikely argument type for equals(): BigDecimal seems to be unrelated to String ---------- 8. INFO in /home/alostale/ws/projects/license/openbravo/src/org/openbravo/erpCommon/ad_process/ConvertQuotationIntoOrder.java (at line 297) if (!"".equals(bdPriceStd) && bdPriceStd != null ^^^^^^^^^^ Unlikely argument type for equals(): BigDecimal seems to be unrelated to String ---------- ---------- 10. INFO in /home/alostale/ws/projects/license/openbravo/src-test/src/org/openbravo/test/costing/TestCosting.java (at line 13180) .equals(DOLLAR_ID))))) ^^^^^^^^^ Unlikely argument type for equals(): String seems to be unrelated to Currency ---------- | ||||||||||||||||||||||||||||
Proposed Solution | |||||||||||||||||||||||||||||
Additional Information | |||||||||||||||||||||||||||||
Tags | No tags attached. | ||||||||||||||||||||||||||||
Relationships |
| ||||||||||||||||||||||||||||
Attached Files | |||||||||||||||||||||||||||||
Issue History | |||||||||||||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||||||||||||
2017-07-06 13:28 | alostale | New Issue | |||||||||||||||||||||||||||
2017-07-06 13:28 | alostale | Assigned To | => Triage Finance | ||||||||||||||||||||||||||
2017-07-06 13:28 | alostale | Modules | => Core | ||||||||||||||||||||||||||
2017-07-06 13:28 | alostale | Triggers an Emergency Pack | => No | ||||||||||||||||||||||||||
2017-07-06 13:28 | alostale | Issue generated from | 0036434 | ||||||||||||||||||||||||||
2017-07-06 13:28 | alostale | Relationship added | related to 0036434 | ||||||||||||||||||||||||||
2017-07-06 13:31 | alostale | Relationship added | blocks 0031477 | ||||||||||||||||||||||||||
2017-07-06 13:42 | alostale | Description Updated | bug_revision_view_page.php?rev_id=15471#r15471 | ||||||||||||||||||||||||||
2017-07-06 16:39 | vmromanos | Assigned To | Triage Finance => collazoandy4 | ||||||||||||||||||||||||||
2017-07-10 10:48 | aferraz | Assigned To | collazoandy4 => markmm82 | ||||||||||||||||||||||||||
2017-07-10 15:39 | markmm82 | Status | new => scheduled | ||||||||||||||||||||||||||
2017-07-11 13:00 | hgbot | Checkin | |||||||||||||||||||||||||||
2017-07-11 13:00 | hgbot | Note Added: 0098015 | |||||||||||||||||||||||||||
2017-07-11 13:00 | hgbot | Status | scheduled => resolved | ||||||||||||||||||||||||||
2017-07-11 13:00 | hgbot | Resolution | open => fixed | ||||||||||||||||||||||||||
2017-07-11 13:00 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/f47b0f799713fba544a3c31c31e3ea8cc7824a35 [^] | ||||||||||||||||||||||||||
2017-07-11 13:00 | hgbot | Checkin | |||||||||||||||||||||||||||
2017-07-11 13:00 | hgbot | Note Added: 0098016 | |||||||||||||||||||||||||||
2017-07-11 13:02 | aferraz | Review Assigned To | => aferraz | ||||||||||||||||||||||||||
2017-07-11 13:02 | aferraz | Note Added: 0098017 | |||||||||||||||||||||||||||
2017-07-11 13:02 | aferraz | Status | resolved => closed | ||||||||||||||||||||||||||
2017-07-11 13:02 | aferraz | Fixed in Version | => 3.0PR17Q4 | ||||||||||||||||||||||||||
2017-07-12 09:31 | alostale | Relationship added | related to 0036446 | ||||||||||||||||||||||||||
2017-07-27 09:47 | hgbot | Checkin | |||||||||||||||||||||||||||
2017-07-27 09:47 | hgbot | Note Added: 0098235 | |||||||||||||||||||||||||||
2017-07-27 09:48 | hgbot | Checkin | |||||||||||||||||||||||||||
2017-07-27 09:48 | hgbot | Note Added: 0098236 | |||||||||||||||||||||||||||
2017-07-27 09:48 | hgbot | Checkin | |||||||||||||||||||||||||||
2017-07-27 09:48 | hgbot | Note Added: 0098237 | |||||||||||||||||||||||||||
2017-07-27 09:49 | hgbot | Checkin | |||||||||||||||||||||||||||
2017-07-27 09:49 | hgbot | Note Added: 0098238 | |||||||||||||||||||||||||||
2017-09-21 16:49 | hudsonbot | Checkin | |||||||||||||||||||||||||||
2017-09-21 16:49 | hudsonbot | Note Added: 0099269 | |||||||||||||||||||||||||||
2017-09-21 16:49 | hudsonbot | Checkin | |||||||||||||||||||||||||||
2017-09-21 16:49 | hudsonbot | Note Added: 0099270 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|