Summary: | Detail formatters encounter classloading-related issues | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Greg Merrill <gmerrill> | ||||||
Component: | Debug | Assignee: | JDT-Debug-Inbox <jdt-debug-inbox> | ||||||
Status: | NEW --- | QA Contact: | |||||||
Severity: | normal | ||||||||
Priority: | P3 | CC: | eclipse.2839, sarika.sinha, tza | ||||||
Version: | 4.16 | ||||||||
Target Milestone: | --- | ||||||||
Hardware: | PC | ||||||||
OS: | Windows 10 | ||||||||
Whiteboard: | |||||||||
Attachments: |
|
Description
Greg Merrill
2020-07-29 20:16:48 EDT
Created attachment 283741 [details]
screenshot1
Created attachment 283742 [details]
screenshot2
Note - we are using: openjdk version "13.0.2" 2020-01-14 Same here with openjdk11. Detail formatter has java.util.GregorianCalender: this.getTime() Following error is displayed: Detail formatter error: The method getTime() is undefined for the type GregorianCalendar Also happens with eclipse 2021/09. Can reproduce the same with the latest Java 17 also. Problem is in the ability to add the methods of super class Calendar to the GregorianCalendar. Even the content assist does not show these methods in the detail Formatter snippet area. The problem still persists in the current version 2022-03 and JDK11. I have found a workaround for the GregorianCalendar with: String str = this.toString(); String[] arr = str.split(","); String year = arr[29].split("=")[1]; String month = arr[30].split("=")[1]; String day = arr[33].split("=")[1]; String hour = arr[39].split("=")[1]; String minute = arr[40].split("=")[1]; String second = arr[41].split("=")[1]; return year + "-" + month + "-" + day + " " + hour + ":" + minute + ":" + second; |