Homework 11

This is the archived website of SI 413 from the Fall 2013 semester. Feel free to browse around; you may also find more recent offerings at my teaching page.

1 Generics

Consider the following very simple class definition in Java:

public class AClass<T> {
  T x;
  public AClass() {
    x = new T();
  1. What error does javac give when you try to compile this class?
  1. What does it mean - what specifically is wrong with this code? Explain in your own words.
  1. Would the equivalent code in C++ using templates work? Why or why not?

2 Licenses

Find an open-source software license that is not mentioned in the slides and tell me about it.

If you want to search around, there is a fairly comprehensive list at this link and also see the links from Unit 10.

As always, you can work together but everyone needs to turn in their own example. (I understand that there will probably be accidental duplicates between people that don't work together, which is fine.)

Specifically, I want to know:

  1. What is the name of the license?
  1. Which license category from class does this licence fall into?
  1. How does this license differ from other similar ones?
  1. Do any notable software projects use it?