001 /* 002 * Copyright 2001-2005 Stephen Colebourne 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 package org.joda.time; 017 018 import org.joda.time.base.AbstractDateTime; 019 import org.joda.time.base.AbstractInstant; 020 021 /** 022 * This class displays what the ClassLoader is up to. 023 * Run using JVM -verbose:class. 024 * 025 * @author Stephen Colebourne 026 */ 027 public class ClassLoadTest { 028 029 // run using JVM -verbose:class 030 public static void main(String[] args) { 031 System.out.println("-----------------------------------------------"); 032 System.out.println("-----------AbstractInstant---------------------"); 033 Class cls = AbstractInstant.class; 034 System.out.println("-----------ReadableDateTime--------------------"); 035 cls = ReadableDateTime.class; 036 System.out.println("-----------AbstractDateTime--------------------"); 037 cls = AbstractDateTime.class; 038 System.out.println("-----------DateTime----------------------------"); 039 cls = DateTime.class; 040 System.out.println("-----------DateTimeZone------------------------"); 041 cls = DateTimeZone.class; 042 System.out.println("-----------new DateTime()----------------------"); 043 DateTime dt = new DateTime(); 044 System.out.println("-----------new DateTime(ReadableInstant)-------"); 045 dt = new DateTime(dt); 046 System.out.println("-----------new DateTime(Long)------------------"); 047 dt = new DateTime(new Long(0)); 048 System.out.println("-----------------------------------------------"); 049 } 050 051 }