Project:
| View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | ||||||||
| 0038131 | ||||||||
| Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
| defect | [Openbravo ERP] A. Platform | trivial | have not tried | 2018-03-14 11:10 | 2018-03-15 15:32 | |||
| Reporter | jarmendariz | View Status | public | |||||
| Assigned To | jarmendariz | |||||||
| Priority | normal | Resolution | fixed | Fixed in Version | 3.0PR18Q2 | |||
| Status | closed | Fix in branch | Fixed in SCM revision | bf94b5ddb743 | ||||
| Projection | none | ETA | none | Target Version | ||||
| OS | Any | Database | Any | Java version | 9 | |||
| OS Version | Database version | Ant version | ||||||
| Product Version | SCM revision | |||||||
| Merge Request Status | ||||||||
| Review Assigned To | caristu | |||||||
| 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 | 0038131: Remove deprecated message for AccessibleObject.isAccesible | |||||||
| Description | Starting from JDK9, AccesibleObject.isAccesible() is marked as deprecated. The documentation [1] suggests that it should be replaced by canAccess(Object), however this method is available only from JDK9. [1] https://docs.oracle.com/javase/9/docs/api/java/lang/reflect/AccessibleObject.html#isAccessible-- [^] | |||||||
| Steps To Reproduce | Compile project with Java 9, open the project with Eclipse and see the resulting warnings. | |||||||
| Proposed Solution | Mark with @SupressWarnings("deprecation") the lines with the deprecated code. When the minimum Java version supported raises to 9, then it should be replaced with canAccess(Object). | |||||||
| Tags | No tags attached. | |||||||
| Attached Files | ||||||||
Relationships [ Relation Graph ]
[ Dependency Graph ]
|
|||||||||||||||
|
|||||||||||||||
Notes |
|
|
(0103246) hgbot (developer) 2018-03-14 17:06 |
Repository: erp/devel/pi Changeset: bf94b5ddb7433eda47159094d702dff2493dd9a9 Author: Javier Armendáriz <javier.armendariz <at> openbravo.com> Date: Wed Mar 14 16:52:23 2018 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/bf94b5ddb7433eda47159094d702dff2493dd9a9 [^] Fixed bug 38131: Removed deprecation warning of isAccesible Added @SupressWarning("all") to temporarily remove the deprecation warning of isAccessible method until it can be replaced with the new canAccess(). Using the "all" value because using @SuppressWarning("deprecation") shows an "unnecesary suppress warning" warning in JDK8 and lower. --- M modules/org.openbravo.base.weld/src-test/org/openbravo/base/weld/test/ParameterCdiTestRule.java M modules/org.openbravo.client.application/src-test/org/openbravo/client/application/test/DisplayLogicAtServerLevelTest.java M src-test/src/org/openbravo/test/base/HiddenObjectHelper.java --- |
|
(0103259) hudsonbot (viewer) 2018-03-14 23:43 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/91dc222dee6a [^] Maturity status: Test |
|
(0103267) hgbot (developer) 2018-03-15 08:57 |
Repository: erp/devel/pi Changeset: c6d53eea0b79de58d67e2f588a70398c50975035 Author: Javier Armendáriz <javier.armendariz <at> openbravo.com> Date: Thu Mar 15 08:54:37 2018 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/c6d53eea0b79de58d67e2f588a70398c50975035 [^] Related to bug 38131: Removed deprecation warning of isAccesible Moved code in order to be able to put @SupressWarnings for a single line instead of the whole method. --- M modules/org.openbravo.base.weld/src-test/org/openbravo/base/weld/test/ParameterCdiTestRule.java --- |
|
(0103268) caristu (viewer) 2018-03-15 09:11 |
Verified |
|
(0103280) hudsonbot (viewer) 2018-03-15 15:32 |
A changeset related to this issue has been promoted main and to the Central Repository, after passing a series of tests. Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/c6d6e97c6d07 [^] Maturity status: Test |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2018-03-14 11:10 | jarmendariz | New Issue | |
| 2018-03-14 11:10 | jarmendariz | Assigned To | => platform |
| 2018-03-14 11:10 | jarmendariz | OBNetwork customer | => No |
| 2018-03-14 11:10 | jarmendariz | Modules | => Core |
| 2018-03-14 11:10 | jarmendariz | Triggers an Emergency Pack | => No |
| 2018-03-14 11:14 | jarmendariz | Relationship added | related to 0037083 |
| 2018-03-14 11:19 | jarmendariz | Relationship added | related to 0038132 |
| 2018-03-14 11:34 | jarmendariz | Assigned To | platform => jarmendariz |
| 2018-03-14 11:34 | jarmendariz | Status | new => scheduled |
| 2018-03-14 17:06 | hgbot | Checkin | |
| 2018-03-14 17:06 | hgbot | Note Added: 0103246 | |
| 2018-03-14 17:06 | hgbot | Status | scheduled => resolved |
| 2018-03-14 17:06 | hgbot | Resolution | open => fixed |
| 2018-03-14 17:06 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/bf94b5ddb7433eda47159094d702dff2493dd9a9 [^] |
| 2018-03-14 18:31 | jarmendariz | Review Assigned To | => caristu |
| 2018-03-14 23:43 | hudsonbot | Checkin | |
| 2018-03-14 23:43 | hudsonbot | Note Added: 0103259 | |
| 2018-03-15 08:57 | hgbot | Checkin | |
| 2018-03-15 08:57 | hgbot | Note Added: 0103267 | |
| 2018-03-15 09:11 | caristu | Note Added: 0103268 | |
| 2018-03-15 09:11 | caristu | Status | resolved => closed |
| 2018-03-15 09:11 | caristu | Fixed in Version | => 3.0PR18Q2 |
| 2018-03-15 09:13 | caristu | Steps to Reproduce Updated | View Revisions |
| 2018-03-15 15:32 | hudsonbot | Checkin | |
| 2018-03-15 15:33 | hudsonbot | Note Added: 0103280 | |
| Copyright © 2000 - 2009 MantisBT Group |