Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0043450
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminorhave not tried2020-03-09 09:262020-06-08 07:10
ReporterAugustoMauchView Statuspublic 
Assigned ToAugustoMauch 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision1ed665b27b39
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toalostale
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0043450: ProcessUploadedFile is meant to be extensible, but is not extensible outside its package

DescriptionProcessUploadedFile 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 ReproduceIn 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();
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(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
---

- 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 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
Powered by Mantis Bugtracker