Openbravo Issue Tracking System - Openbravo ERP |
| View Issue Details |
|
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0038131 | Openbravo ERP | A. Platform | public | 2018-03-14 11:10 | 2018-03-15 15:32 |
|
| Reporter | jarmendariz | |
| Assigned To | jarmendariz | |
| Priority | normal | Severity | trivial | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | |
| Platform | | OS | 5 | OS Version | |
| Product Version | | |
| Target Version | | Fixed in Version | 3.0PR18Q2 | |
| 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). |
| Additional Information | |
| Tags | No tags attached. |
| Relationships | | related to | feature request | 0037083 | | closed | alostale | support JDK 9 | | related to | design defect | 0038132 | | acknowledged | Triage Platform Base | Replace deprecated isAccesible() with canAccess() introduced in JDK9 |
|
| Attached Files | |
|
| 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 | bug_revision_view_page.php?rev_id=16850#r16850 |
| 2018-03-15 15:32 | hudsonbot | Checkin | |
| 2018-03-15 15:33 | hudsonbot | Note Added: 0103280 | |
|
Notes |
|
|
(0103246)
|
|
hgbot
|
|
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
---
|
|
|
|
|
|
|
|
(0103267)
|
|
hgbot
|
|
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
---
|
|
|
|
|
|
|
|
|
|