Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0043450 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | minor | have not tried | 2020-03-09 09:26 | 2020-06-08 07:10 | |||
Reporter | AugustoMauch | View Status | public | |||||
Assigned To | AugustoMauch | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | 1ed665b27b39 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
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(); | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0120601) hgbot (developer) 2020-06-03 14:33 |
Repository: erp/devel/pi Changeset: 1ed665b27b39eff20203e1a444f203c87d680132 Author: Augusto Mauch <augusto.mauch <at> openbravo.com> Date: Wed Jun 03 14:33:34 2020 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/1ed665b27b39eff20203e1a444f203c87d680132 [^] Fixes ISSUE-43450: UploadResult is public so ProcessUploadedFile is extensible --- M modules/org.openbravo.client.application/src/org/openbravo/client/application/businesslogic/ProcessUploadedFile.java --- |
![]() |
|||
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 |
Copyright © 2000 - 2009 MantisBT Group |