Error: Cannot access protected member long getTimeInMillis() in class Calendar
Hi, I am coding a cross-platform piece of code, which explicitly needs to be backwards (and forwards) compatible, between various versions of Java.
However, another problem is that it also needs to be VM cross compatible (between Sun JVM 1.2+ and Microsoft JVM 6.0+).
The requirement is to compile using Microsoft JDK (jvc.exe) 6.00.8343.
I have a piece of code that looks something like this:
This works fine under Sun JDK (1.3.1), but under Microsoft, it spits out the following error:
long time = Calendar.getInstance(TimeZone.get...).getTimeInMillis();
Where could I find the API specification document for the Microsoft JDK Calendar class; or what would be another way of achieving this (another method that's both public and common to both JDK perhaps)?
java\xxx\yyy\Zzzzz.java(4129,57) : error J0203: Cannot access protected member 'long getTimeInMillis()' in class 'Calendar' from class 'Zzzzz.Zinner'