Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

What the fuck Eclipse? IT'S PRIVATE!

Name: Anonymous 2009-06-30 20:06

I don't understand why the fuck is this fucking IDE bitching.
This is the proverbial Node for a LinkedList ADT:

private static class Node<E> {

    private final E element;

    private Node<E> next;

    private Node(final E dataElement, final Node<E> nextNode) {
      this.element = dataElement;
      this.next = nextNode;
    }

    @Override public String toString() {
      return this.element.toString();
    }
  }


Access to enclosing constructor LinkedList<E>.Node<E>(E, LinkedList.Node<E>) is emulated by a synthetic accessor method. Increasing its visibility will improve your performance.

Read access to enclosing field LinkedList<E>.Node<E>.element is emulated by a synthetic accessor method. Increasing its visibility will improve your performance.

Read access to enclosing field LinkedList<E>.Node<E>.next is emulated by a synthetic accessor method. Increasing its visibility will improve your performance.

What the fuck? It's supposed to be private!

Name: Anonymous 2009-06-30 22:45

A. Private members are a stupid idea.
B. In what way is this Node proverbial?

Name: Anonymous 2009-06-30 22:49

>>1
so was your mom's vagina but that didn't stop me.

Name: Anonymous 2009-06-30 23:14

>>2
You know what they say, a little node's edge is a dangerous thing.

Name: Anonymous 2009-07-01 1:04

http://dev.eclipse.org/mhonarc/lists/jdt-dev/msg00145.html

It's not Eclipse's fault, it's Java's fault. Just make the fields package-private and all your problems will go away.

Name: Anonymous 2009-07-01 1:09

Works fine in emacs

Name: Anonymous 2009-07-01 5:53

>>5

http://java.sun.com/developer/onlineTraining/Programming/BasicJava2/oo.html#access -
private: A private field or method is accessible only to the class in which it is defined.

Fuck it, I'll do as you say Anonymous. Thanks!

Name: Anonymous 2009-07-01 5:55

Public

EVERYTHING

Name: Anonymous 2009-07-01 6:50

#define private public
LoL!

Name: Anonymous 2009-07-01 7:59

java has templates now?

Name: Anonymous 2009-07-01 8:12

ACTIVE THREAD BUMP

Name: Anonymous 2010-12-09 21:46

Don't change these.
Name: Email:
Entire Thread Thread List