Openbravo Issue Tracking System - Openbravo ERP | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0043450 | Openbravo ERP | A. Platform | public | 2020-03-09 09:26 | 2020-06-08 07:10 |
| Reporter | AugustoMauch | ||||
| Assigned To | AugustoMauch | ||||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | ||
| Platform | OS | 5 | OS Version | ||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Merge Request Status | |||||
| Review Assigned To | alostale | ||||
| OBNetwork customer | No | ||||
| Web browser | |||||
| Modules | Core | ||||
| Support ticket | |||||
| Regression level | |||||
| Regression date | |||||
| Regression introduced in release | |||||
| Regression introduced by commit | |||||
| Triggers an Emergency Pack | No | ||||
| Summary | 0043450: ProcessUploadedFile is meant to be extensible, but is not extensible outside its package | ||||
| Description | ProcessUploadedFile is an abstract class, meant to be extended to define new processes to upload files. This is one of the methods to be overwritten: protected abstract UploadResult doProcessFile(JSONObject paramValues, File file) throws Exception; The problem is that UploadResult is a inner protected class, whose default constructor is not visible outside the package where it is defined. | ||||
| Steps To Reproduce | In a separate module, define a dummy extension of ProcessUploadedFile: @Override protected UploadResult doProcessFile(JSONObject paramValues, File file) throws Exception { final UploadResult uploadResult = new UploadResult(); return uploadResult; } There will be a build error: [javac] /home/openbravo/workspaces/src/norauto/testSnapshotTip/openbravo/modules/org.openbravo.retail.discounts.priceadjustmentbyproduct/src/org/openbravo/retail/discounts/priceadjustmentbyproduct/imports/DISPAPImportProductInDiscount.java:59: error: UploadResult() has protected access in UploadResult [javac] final UploadResult uploadResult = new UploadResult(); | ||||
| Proposed Solution | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2020-03-09 09:26 | AugustoMauch | New Issue | |||
| 2020-03-09 09:26 | AugustoMauch | Assigned To | => AugustoMauch | ||
| 2020-03-09 09:26 | AugustoMauch | OBNetwork customer | => No | ||
| 2020-03-09 09:26 | AugustoMauch | Modules | => Core | ||
| 2020-03-09 09:26 | AugustoMauch | Triggers an Emergency Pack | => No | ||
| 2020-06-03 14:33 | hgbot | Checkin | |||
| 2020-06-03 14:33 | hgbot | Note Added: 0120601 | |||
| 2020-06-03 14:33 | hgbot | Status | new => resolved | ||
| 2020-06-03 14:33 | hgbot | Resolution | open => fixed | ||
| 2020-06-03 14:33 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/1ed665b27b39eff20203e1a444f203c87d680132 [^] | ||
| 2020-06-08 07:10 | alostale | Review Assigned To | => alostale | ||
| 2020-06-08 07:10 | alostale | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||