Bug 21442 - problem with imports and multifile builds
Summary: problem with imports and multifile builds
Status: RESOLVED DUPLICATE of bug 21436
Alias: None
Product: gcc
Classification: Unclassified
Component: java (show other bugs)
Version: 4.1.0
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks: 21418
  Show dependency treegraph
 
Reported: 2005-05-07 10:58 UTC by Paolo Bonzini
Modified: 2005-07-23 22:49 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paolo Bonzini 2005-05-07 10:58:55 UTC
Another bug in multifile processing.  With these two classes:

Pipe.java:
  package java.nio.channels;
  import java.nio.channels.spi.AbstractSelectableChannel;
  public abstract class Pipe { }

SelectableChannel.java:
  package java.nio.channels;
  import java.nio.channels.spi.AbstractInterruptibleChannel;
  public abstract class SelectableChannel extends AbstractInterruptibleChannel
  { }

jc1 compiles Pipe.java on its own, but fails to compile the two files together
with an

Pipe.java:3: internal compiler error: tree check: expected class 'expression',
have 'constant' (integer_cst) in make_class_data, at java/class.c:1572

for SelectableChannel.  Looks like another bug related to imports, because size
is an error_mark, and because inverting the order of the files works around the bug.

This is with my patch for 21436.
Comment 1 Paolo Bonzini 2005-05-09 10:03:00 UTC
The problem is that, while looking for AbstractInterruptibleChannel (a
superclass of SelectableChannel), we do not look into the imports of
SelectableChannel.

*** This bug has been marked as a duplicate of 21436 ***